Add database config into other foodsoft containers
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bf2969e1b7
commit
3475a22d33
20
compose.yml
20
compose.yml
|
@ -68,12 +68,32 @@ services:
|
||||||
cron:
|
cron:
|
||||||
image: "foodcoops/foodsoft:4.7.0"
|
image: "foodcoops/foodsoft:4.7.0"
|
||||||
command: ./proc-start cron
|
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:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: "foodcoops/foodsoft:4.7.0"
|
image: "foodcoops/foodsoft:4.7.0"
|
||||||
command: ./proc-start worker
|
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:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue