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