working
This commit is contained in:
+23
-9
@@ -9,10 +9,11 @@ services:
|
||||
- internal
|
||||
environment:
|
||||
DEBUG: formio:*
|
||||
NODE_CONFIG: '{"mongo": "mongodb://mongo:27017/formio"}'
|
||||
ROOT_PASSWORD_FILE: annoying
|
||||
# NODE_CONFIG: '{"mongo": "mongodb://mongo:27017/formio"}'
|
||||
ROOT_PASSWORD_FILE: "/run/secrets/root_pass"
|
||||
secrets:
|
||||
- root_pass
|
||||
- mongo_pass
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
@@ -39,10 +40,12 @@ services:
|
||||
# retries: 10
|
||||
# start_period: 1m
|
||||
configs:
|
||||
- source: backup-postgres
|
||||
target: /backup.sh
|
||||
- source: custom-entrypoint
|
||||
target: /custom-entrypoint.sh
|
||||
mode: 0777
|
||||
mongodb:
|
||||
entrypoint: /custom-entrypoint.sh
|
||||
|
||||
mongo:
|
||||
image: mongo:8.2.6
|
||||
networks:
|
||||
- internal
|
||||
@@ -51,18 +54,29 @@ services:
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: "root"
|
||||
MONGO_INITDB_ROOT_PASSWORD_FILE: "/run/secrets/mongo_pass"
|
||||
MONGO_INITDB_DATABASE: formio
|
||||
configs:
|
||||
- source: mongo-init
|
||||
target: /docker-entrypoint-initdb.d/mongo-init.js
|
||||
mode: 0777
|
||||
secrets:
|
||||
- mongo_pass
|
||||
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
||||
configs:
|
||||
backup-postgres:
|
||||
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
|
||||
file: ./backup-postgres.sh
|
||||
custom-entrypoint:
|
||||
name: custom-entrypoint_${CUSTOM_ENTRYPOINT_VERSION}
|
||||
file: ./custom-entrypoint.sh.tmpl
|
||||
template_driver: golang
|
||||
mongo-init:
|
||||
name: mongo-init_${MONGO-INIT_VERSION}
|
||||
file: ./mongo-init.js.tmpl
|
||||
template_driver: golang
|
||||
|
||||
networks:
|
||||
internal:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user