Add volume mount for data persistence
continuous-integration/drone/push Build is failing Details

This commit is contained in:
3wc 2023-01-22 19:26:20 -08:00
parent 928dc24cb3
commit bcc890338b
1 changed files with 15 additions and 8 deletions

View File

@ -6,7 +6,10 @@ services:
- proxy
environment:
- APPLICATION_URL=$DOMAIN
- ADMIN_PASSWORD_FILE=/run/secrets/admin_password
# NOTE(3wc): See note below
# - ADMIN_PASSWORD_FILE=/run/secrets/admin_password
volumes:
- "filestash_state:/app/data/state/"
deploy:
restart_policy:
condition: on-failure
@ -21,13 +24,14 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- coop-cloud.${STACK_NAME}.app.version=e02267d-07d7189c
secrets:
- admin_password
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
entrypoint: ['/docker-entrypoint.sh']
# NOTE(3wc): Attempt to use secrets, need to bcrypt, more later
# secrets:
# - admin_password
# configs:
# - source: entrypoint_conf
# target: /docker-entrypoint.sh
# mode: 0555
# entrypoint: ['/docker-entrypoint.sh']
secrets:
admin_password:
@ -38,6 +42,9 @@ networks:
proxy:
external: true
volumes:
filestash_state:
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}