Compare commits
13 Commits
minio_root
...
0.2.4+v4.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 269f582f79 | |||
| f87c73b953 | |||
| 80adfcafdc | |||
| 1962ab7c8f | |||
| 163eea1ba7 | |||
| 41c73faa24 | |||
| bd3c2c17d2 | |||
| f49e0f5158 | |||
| 16c68c085b | |||
| b6f601ca24 | |||
| 00b0c2e64e | |||
| d82844ba59 | |||
| b527d802ca |
@ -27,6 +27,8 @@ SECRET_COLLAB_SS_VERSION=v1
|
|||||||
SECRET_POSTGRES_P_VERSION=v1
|
SECRET_POSTGRES_P_VERSION=v1
|
||||||
# Y_PROVIDER_API_KEY
|
# Y_PROVIDER_API_KEY
|
||||||
SECRET_Y_API_KEY_VERSION=v1
|
SECRET_Y_API_KEY_VERSION=v1
|
||||||
|
# DJANGO_HOST_EMAIL_PASSWORD
|
||||||
|
SECRET_EMAIL_PASS_VERSION=v1
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# EMAIL
|
# EMAIL
|
||||||
@ -35,6 +37,9 @@ DJANGO_EMAIL_BRAND_NAME="La Suite Numérique"
|
|||||||
DJANGO_EMAIL_HOST="mail.example.com"
|
DJANGO_EMAIL_HOST="mail.example.com"
|
||||||
DJANGO_EMAIL_LOGO_IMG="http://$DOMAIN/assets/logo-suite-numerique.png"
|
DJANGO_EMAIL_LOGO_IMG="http://$DOMAIN/assets/logo-suite-numerique.png"
|
||||||
DJANGO_EMAIL_PORT=1025
|
DJANGO_EMAIL_PORT=1025
|
||||||
|
DJANGO_EMAIL_USE_SSL=True
|
||||||
|
DJANGO_EMAIL_USE_TLS=False
|
||||||
|
DJANGO_EMAIL_FROM=mail@example.com
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# SINGLE SIGN ON
|
# SINGLE SIGN ON
|
||||||
|
|||||||
@ -3,21 +3,15 @@ set -e
|
|||||||
|
|
||||||
[ -f /run/secrets/postgres_p ] && export DB_PASSWORD="$(cat /run/secrets/postgres_p)"
|
[ -f /run/secrets/postgres_p ] && export DB_PASSWORD="$(cat /run/secrets/postgres_p)"
|
||||||
[ -f /run/secrets/django_sk ] && export DJANGO_SECRET_KEY="$(cat /run/secrets/django_sk)"
|
[ -f /run/secrets/django_sk ] && export DJANGO_SECRET_KEY="$(cat /run/secrets/django_sk)"
|
||||||
#[ -f /run/secrets/minio_rp ] && export MINIO_ROOT_PASSWORD="$(cat /run/secrets/minio_rp)"
|
|
||||||
[ -f /run/secrets/minio_rp ] && export AWS_S3_SECRET_ACCESS_KEY="$(cat /run/secrets/minio_rp)"
|
[ -f /run/secrets/minio_rp ] && export AWS_S3_SECRET_ACCESS_KEY="$(cat /run/secrets/minio_rp)"
|
||||||
[ -f /run/secrets/minio_ru ] && export AWS_S3_ACCESS_KEY_ID="$(cat /run/secrets/minio_ru)"
|
[ -f /run/secrets/minio_ru ] && export AWS_S3_ACCESS_KEY_ID="$(cat /run/secrets/minio_ru)"
|
||||||
[ -f /run/secrets/django_sp ] && export DJANGO_SUPERUSER_PASSWORD="$(cat /run/secrets/django_sp)"
|
[ -f /run/secrets/django_sp ] && export DJANGO_SUPERUSER_PASSWORD="$(cat /run/secrets/django_sp)"
|
||||||
[ -f /run/secrets/oidc_rpcs ] && export OIDC_RP_CLIENT_SECRET="$(cat /run/secrets/oidc_rpcs)"
|
[ -f /run/secrets/oidc_rpcs ] && export OIDC_RP_CLIENT_SECRET="$(cat /run/secrets/oidc_rpcs)"
|
||||||
[ -f /run/secrets/collab_ss ] && export COLLABORATION_SERVER_SECRET="$(cat /run/secrets/collab_ss)"
|
[ -f /run/secrets/collab_ss ] && export COLLABORATION_SERVER_SECRET="$(cat /run/secrets/collab_ss)"
|
||||||
[ -f /run/secrets/y_api_key ] && export Y_PROVIDER_API_KEY="$(cat /run/secrets/y_api_key)"
|
[ -f /run/secrets/y_api_key ] && export Y_PROVIDER_API_KEY="$(cat /run/secrets/y_api_key)"
|
||||||
|
[ -f /run/secrets/email_pass ] && export DJANGO_EMAIL_HOST_PASSWORD="$(cat /run/secrets/email_pass)"
|
||||||
|
|
||||||
# if not in "env" mode, then execute the original entrypoint and command
|
# if not in "env" mode, then execute the original entrypoint and command
|
||||||
if [ ! "$1" = "-e" ]; then
|
if [ ! "$1" = "-e" ]; then
|
||||||
ORIGINAL_ENTRYPOINT="$1"
|
exec "$@"
|
||||||
shift
|
|
||||||
if [ -n "$ORIGINAL_ENTRYPOINT" ] && [ "$ORIGINAL_ENTRYPOINT" != "null" ]; then
|
|
||||||
exec "$ORIGINAL_ENTRYPOINT" "$@"
|
|
||||||
else
|
|
||||||
exec "$@"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
2
abra.sh
2
abra.sh
@ -1,6 +1,6 @@
|
|||||||
# Set any config versions here
|
# Set any config versions here
|
||||||
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
||||||
export ABRA_ENTRYPOINT_VERSION=v4
|
export ABRA_ENTRYPOINT_VERSION=v5
|
||||||
export NGINX_CONF_VERSION=v3
|
export NGINX_CONF_VERSION=v3
|
||||||
export PG_BACKUP_VERSION=v3
|
export PG_BACKUP_VERSION=v3
|
||||||
|
|
||||||
|
|||||||
49
compose.yml
49
compose.yml
@ -21,7 +21,10 @@ x-common-env: &common-env
|
|||||||
DJANGO_EMAIL_LOGO_IMG:
|
DJANGO_EMAIL_LOGO_IMG:
|
||||||
DJANGO_EMAIL_PORT:
|
DJANGO_EMAIL_PORT:
|
||||||
DJANGO_EMAIL_HOST_USER:
|
DJANGO_EMAIL_HOST_USER:
|
||||||
DJANGO_EMAIL_HOST_PASSWORD:
|
# DJANGO_EMAIL_HOST_PASSWORD supplied via secret
|
||||||
|
DJANGO_EMAIL_USE_SSL:
|
||||||
|
DJANGO_EMAIL_USE_TLS:
|
||||||
|
DJANGO_EMAIL_FROM:
|
||||||
# Backend url
|
# Backend url
|
||||||
IMPRESS_BASE_URL: "https://${DOMAIN}"
|
IMPRESS_BASE_URL: "https://${DOMAIN}"
|
||||||
# Media
|
# Media
|
||||||
@ -80,14 +83,15 @@ x-minio-env: &minio-env
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: lasuite/impress-frontend:v3.4.2
|
image: lasuite/impress-frontend:v4.0.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=false"
|
- "traefik.enable=false"
|
||||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=0.2.1+v3.4.2"
|
- "coop-cloud.${STACK_NAME}.version=0.2.4+v4.0.0"
|
||||||
|
user: "${DOCKER_USER:-1000}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
@ -96,7 +100,7 @@ services:
|
|||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: lasuite/impress-backend:v3.4.2
|
image: lasuite/impress-backend:v4.0.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment:
|
environment:
|
||||||
@ -107,6 +111,7 @@ services:
|
|||||||
timeout: 30s
|
timeout: 30s
|
||||||
retries: 20
|
retries: 20
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
user: "${DOCKER_USER:-1000}"
|
||||||
command: ["gunicorn", "-c", "/usr/local/etc/gunicorn/impress.py", "impress.wsgi:application"]
|
command: ["gunicorn", "-c", "/usr/local/etc/gunicorn/impress.py", "impress.wsgi:application"]
|
||||||
entrypoint: ["/abra-entrypoint.sh", "/usr/local/bin/entrypoint"]
|
entrypoint: ["/abra-entrypoint.sh", "/usr/local/bin/entrypoint"]
|
||||||
configs:
|
configs:
|
||||||
@ -119,13 +124,16 @@ services:
|
|||||||
- oidc_rpcs
|
- oidc_rpcs
|
||||||
- collab_ss
|
- collab_ss
|
||||||
- minio_rp
|
- minio_rp
|
||||||
|
- minio_ru
|
||||||
- postgres_p
|
- postgres_p
|
||||||
- y_api_key
|
- y_api_key
|
||||||
|
- email_pass
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
image: lasuite/impress-backend:v3.4.2
|
image: lasuite/impress-backend:v4.0.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
user: "${DOCKER_USER:-1000}"
|
||||||
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
|
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
|
||||||
environment:
|
environment:
|
||||||
<<: [*common-env, *postgres-env, *yprovider-env]
|
<<: [*common-env, *postgres-env, *yprovider-env]
|
||||||
@ -142,27 +150,20 @@ services:
|
|||||||
- minio_rp
|
- minio_rp
|
||||||
- postgres_p
|
- postgres_p
|
||||||
- y_api_key
|
- y_api_key
|
||||||
|
- email_pass
|
||||||
|
|
||||||
|
|
||||||
y-provider:
|
y-provider:
|
||||||
image: lasuite/impress-y-provider:v3.4.2
|
image: lasuite/impress-y-provider:v4.0.0
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment: *yprovider-env
|
environment: *yprovider-env
|
||||||
|
user: "${DOCKER_USER:-1000}"
|
||||||
|
entrypoint: >
|
||||||
|
sh -c "export Y_PROVIDER_API_KEY=\"$$(cat /run/secrets/y_api_key)\" && exec /usr/local/bin/entrypoint \"$$@\"" --
|
||||||
command: ["yarn", "start"]
|
command: ["yarn", "start"]
|
||||||
entrypoint: ["/abra-entrypoint.sh", "/usr/local/bin/entrypoint"]
|
|
||||||
configs:
|
|
||||||
- source: abra_entrypoint
|
|
||||||
target: /abra-entrypoint.sh
|
|
||||||
mode: 0555
|
|
||||||
# NOTE: healthcheck - `wget` is available in the container, but `wget http://localhost:4444` gives a 403
|
# NOTE: healthcheck - `wget` is available in the container, but `wget http://localhost:4444` gives a 403
|
||||||
secrets:
|
secrets:
|
||||||
- django_sk
|
|
||||||
- django_sp
|
|
||||||
- oidc_rpcs
|
|
||||||
- collab_ss
|
|
||||||
- minio_rp
|
|
||||||
- postgres_p
|
|
||||||
- y_api_key
|
- y_api_key
|
||||||
|
|
||||||
db:
|
db:
|
||||||
@ -229,9 +230,9 @@ services:
|
|||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 300
|
retries: 300
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
command: minio server /data
|
command: minio server /data
|
||||||
entrypoint: ["/abra-entrypoint.sh", "/usr/bin/docker-entrypoint.sh"]
|
entrypoint: ["/usr/bin/docker-entrypoint.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- minio:/data
|
- minio:/data
|
||||||
deploy:
|
deploy:
|
||||||
@ -254,6 +255,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
backend:
|
backend:
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
|
- app
|
||||||
environment:
|
environment:
|
||||||
- STACK_NAME
|
- STACK_NAME
|
||||||
deploy:
|
deploy:
|
||||||
@ -311,4 +315,7 @@ secrets:
|
|||||||
name: ${STACK_NAME}_minio_ru_${SECRET_MINIO_RP_VERSION}
|
name: ${STACK_NAME}_minio_ru_${SECRET_MINIO_RP_VERSION}
|
||||||
y_api_key:
|
y_api_key:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_y_api_key_${SECRET_Y_API_KEY_VERSION}
|
name: ${STACK_NAME}_y_api_key_${SECRET_Y_API_KEY_VERSION}
|
||||||
|
email_pass:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_email_pass_${SECRET_EMAIL_PASS_VERSION}
|
||||||
Reference in New Issue
Block a user