it works!
This commit is contained in:
parent
2ea5c39939
commit
1e2a2a67f8
1 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,16 @@ services:
|
||||||
# options:
|
# options:
|
||||||
# max-size: '10m'
|
# max-size: '10m'
|
||||||
|
|
||||||
|
worker1:
|
||||||
|
build: .
|
||||||
|
command: [ "node", "deliveryWorker.js" ]
|
||||||
|
restart: always
|
||||||
|
env_file: '.env'
|
||||||
|
environment:
|
||||||
|
DB_URL: 'mongodb://mongodb:27017'
|
||||||
|
depends_on:
|
||||||
|
- mongodb
|
||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongo:4.2
|
image: mongo:4.2
|
||||||
restart: always
|
restart: always
|
||||||
|
|
Loading…
Reference in a new issue