adapt_authoring/compose.yml

77 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2020-10-01 20:21:57 +00:00
version: "3.8"
services:
app:
2023-01-17 03:48:08 +00:00
image: git.coopcloud.tech/coop-cloud-chaos-patchs/adapt_authoring:0.11.1
2020-10-01 20:21:57 +00:00
networks:
- proxy
2020-10-02 12:15:51 +00:00
- internal
environment:
- PORT=5000
- DOMAIN
- DB_HOST=db
- DB_NAME=adapt
- DB_USER=adapt
#- DB_PASSWORD_FILE=/var/run/secrets/db_password
- SESSION_KEY_FILE=/var/run/secrets/session_key
- ADMIN_EMAIL
- ADMIN_PASSWORD_FILE=/var/run/secrets/admin_password
- FROM_EMAIL
depends_on:
- db
2023-01-17 06:04:55 +00:00
# entrypoint: ['tail', '-f', '/dev/null']
2020-10-02 12:15:51 +00:00
volumes:
2023-01-17 06:04:55 +00:00
- adapt_data:/adapt_authoring/data
- adapt_conf:/adapt_authoring/conf
- adapt_frontend_build:/adapt_authoring/frontend/build
- adapt_temp:/adapt_authoring/temp
2020-10-02 12:15:51 +00:00
secrets:
#- db_password
- session_key
- admin_password
2020-10-02 17:23:31 +00:00
# 3wc: This seems to succeed within the container, but isn't yet working here
#healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:5000"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 5m
2020-10-01 20:21:57 +00:00
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
2020-10-02 12:15:51 +00:00
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5000"
2020-10-01 20:21:57 +00:00
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
2020-10-02 12:15:51 +00:00
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
2023-03-07 16:35:13 +00:00
- "coop-cloud.${STACK_NAME}.version=0.2.0+0.11.1"
2020-10-02 12:15:51 +00:00
db:
2021-04-04 16:19:30 +00:00
image: mongo:3.7
2020-10-02 12:15:51 +00:00
volumes:
2021-04-04 11:06:08 +00:00
- db:/data/db
2020-10-02 12:15:51 +00:00
networks:
- internal
labels:
- "traefik.enable=false"
2020-10-01 20:21:57 +00:00
networks:
proxy:
external: true
2020-10-02 12:15:51 +00:00
internal:
volumes:
db:
2023-01-17 06:04:55 +00:00
adapt_conf:
adapt_data:
adapt_temp:
adapt_frontend_build:
2020-10-02 12:15:51 +00:00
secrets:
2021-04-04 11:06:08 +00:00
session_key:
external: true
2021-02-08 12:30:11 +00:00
name: ${STACK_NAME}_session_key_${SECRET_SESSION_KEY_VERSION}
2021-04-04 11:06:08 +00:00
admin_password:
external: true
2021-02-08 12:30:11 +00:00
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}