-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (70 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
72 lines (70 loc) · 1.28 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.9'
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8001:8001"
env_file:
- .env
volumes:
- static_volume:/app/app/static
depends_on:
- pdb
pdb:
image: postgres:15.4
env_file:
- .env
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.2
ports:
- "6379:6379"
worker:
build:
context: .
dockerfile: Dockerfile
command: celery -A app.celery.celery_app worker --loglevel=info
env_file:
- .env
depends_on:
- redis
beat:
build:
context: .
dockerfile: Dockerfile
command: celery -A app.celery.celery_app beat --loglevel=info
env_file:
- .env
depends_on:
- redis
flower:
image: mher/flower:0.9.7
command: [ 'flower', '--broker=redis://redis:6379', '--port=5555' ]
ports:
- "5557:5555"
depends_on:
- redis
mongo:
image: mongo:7.0.5
restart: always
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
nginx:
build: ./nginx
volumes:
- static_volume:/app/app/static
ports:
- "8080:80"
depends_on:
- api
volumes:
static_volume:
postgres_data:
mongodb-data: