-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (55 loc) · 1.06 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
version: '3.9'
services:
frontend:
build:
context: .
dockerfile: ./container/frontend/Dockerfile
ports:
- 3000:3000
server:
build:
context: .
dockerfile: ./container/backend/Dockerfile
volumes:
- ./backend/:/backend/
env_file:
- ./backend/.env
ports:
- 9191:9191
depends_on:
- db
db:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./backend/.env
ports:
- 5432:5432 #https://docs.docker.com/compose/networking/
redis:
image: redis:6.2-alpine
celery_worker:
build:
context: .
dockerfile: ./container/celery/Dockerfile
volumes:
- ./backend/:/backend/
env_file:
- ./backend/.env
depends_on:
- server
- redis
flower:
build:
context: .
dockerfile: ./container/flower/Dockerfile
ports:
- 5556:5555
env_file:
- ./backend/.env
depends_on:
- server
- redis
- celery_worker
volumes:
postgres_data: