-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (51 loc) · 1.04 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
55 lines (51 loc) · 1.04 KB
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
54
55
services:
frontend:
container_name: "frontend"
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:3000"
environment:
- NODE_ENV=production
- BACKEND_URL=http://backend:3000
depends_on:
backend:
condition: "service_started"
user: "prod"
mongo:
image: mongo
container_name: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USR}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PWD}
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
dbworker:
container_name: "dbworker"
build:
context: ./dbworker
dockerfile: Dockerfile
env_file: .env
tty: true
ports:
- "8080:8080"
depends_on:
- mongo
backend:
container_name: "backend"
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3030:3030"
depends_on:
- dbworker
volumes:
- ./backend:/agent
command: bash -c "python3 /agent/launch.py"
volumes:
mongo-data: