-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
53 lines (53 loc) · 1021 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
services:
api:
build: .
image: atomicloans/agent
container_name: agent_api
environment:
- MONGODB_URI=mongodb://db/agent
- PARTY=lender
- PORT=3030
- PROCESS_TYPE=api
env_file:
- ./.env
ports:
- "3030:3030"
restart: unless-stopped
networks:
- app-network
volumes:
- ./.env:/app/.env
command: ["bin/atomicagent", "api"]
worker:
build: .
image: atomicloans/agent
container_name: agent_worker
environment:
- MONGODB_URI=mongodb://db/agent
- PARTY=lender
- PORT=3032
- PROCESS_TYPE=worker
env_file:
- ./.env
volumes:
- ./.env:/app/.env
ports:
- "3032:3032"
networks:
- app-network
command: ["bin/atomicagent", "worker"]
db:
image: mongo:4.2.2
container_name: db
restart: unless-stopped
volumes:
- dbdata:/data/db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
dbdata:
node_modules: