-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 955 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (46 loc) · 955 Bytes
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
services:
mongodb:
image: mongo:7
container_name: atp_mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: adminpass
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
redis:
image: redis:7-alpine
container_name: atp_redis
restart: unless-stopped
ports:
- "6379:6379"
backend:
build: ./backend
container_name: atp_backend
restart: unless-stopped
env_file: ./backend/.env.docker
ports:
- "5000:5000"
depends_on:
- mongodb
- redis
worker:
build: ./worker
container_name: atp_worker
restart: unless-stopped
env_file: ./worker/.env.docker
depends_on:
- mongodb
- redis
frontend:
build: ./frontend
container_name: atp_frontend
restart: unless-stopped
ports:
- "3000:80"
depends_on:
- backend
volumes:
mongo_data: