Add database config into other foodsoft containers
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-11-08 16:11:58 +01:00
parent bf2969e1b7
commit 3475a22d33
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 20 additions and 0 deletions

View File

@ -68,12 +68,32 @@ services:
cron:
image: "foodcoops/foodsoft:4.7.0"
command: ./proc-start cron
environment:
- MYSQL_DB
- MYSQL_HOST
- MYSQL_PORT
- MYSQL_USER
configs:
- source: db_config
target: /usr/src/app/config/database.yml
secrets:
- db_password
networks:
- internal
worker:
image: "foodcoops/foodsoft:4.7.0"
command: ./proc-start worker
environment:
- MYSQL_DB
- MYSQL_HOST
- MYSQL_PORT
- MYSQL_USER
configs:
- source: db_config
target: /usr/src/app/config/database.yml
secrets:
- db_password
networks:
- internal