2022-11-08 03:36:01 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
guppe:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8085:8085
|
2023-08-16 20:24:10 +00:00
|
|
|
- 8086:8086
|
2022-11-08 03:36:01 +00:00
|
|
|
env_file: '.env'
|
|
|
|
environment:
|
|
|
|
DB_URL: 'mongodb://mongodb:27017'
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
volumes:
|
|
|
|
# localdev certs
|
|
|
|
- ./certs:/usr/src/guppe/certs
|
2023-08-16 20:24:10 +00:00
|
|
|
# logging:
|
|
|
|
# driver: local
|
|
|
|
# options:
|
|
|
|
# max-size: '10m'
|
2022-11-08 03:36:01 +00:00
|
|
|
|
2023-08-18 20:46:49 +00:00
|
|
|
worker1:
|
|
|
|
build: .
|
|
|
|
command: [ "node", "deliveryWorker.js" ]
|
|
|
|
restart: always
|
|
|
|
env_file: '.env'
|
|
|
|
environment:
|
|
|
|
DB_URL: 'mongodb://mongodb:27017'
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
|
2022-11-08 03:36:01 +00:00
|
|
|
mongodb:
|
|
|
|
image: mongo:4.2
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- mongo-data:/data/db
|
2023-08-16 20:24:10 +00:00
|
|
|
#logging:
|
|
|
|
# driver: local
|
|
|
|
# options:
|
|
|
|
# max-size: '10m'
|
2022-11-08 03:36:01 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongo-data:
|