-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (57 loc) · 1.02 KB
/
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
54
55
56
57
58
59
60
61
62
63
services:
db:
image: postgres
container_name: postgres
volumes:
- ./.data/postgres:/var/lib/postgresql/data
env_file:
- .env
ports:
- "5432:5432"
networks:
- trans_network
backend:
build: ./src/backend
container_name: backend
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./src/backend:/app
depends_on:
- db
- redis
networks:
- trans_network
frontend:
container_name: frontend
build: ./src/frontend
ports:
- "3001:80"
networks:
- trans_network
volumes:
- ./src/frontend:/app
redis:
image: redis
container_name: redis
ports:
- "6378:6379"
networks:
- trans_network
nginx:
container_name: nginx
build: ./src/nginx
ports:
- "3000:443"
networks:
- trans_network
volumes:
- ./src/backend/home_api/media:/var/www/media
depends_on:
- frontend
- backend
networks:
trans_network:
driver: bridge