-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 957 Bytes
/
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
version: "3.7"
services:
db:
image: postgres:15
container_name: db_app
command: -p 1221
expose:
- 1221
env_file:
- .env-non-dev
redis:
image: redis:7
container_name: redis_app
command: --port 5370
expose:
- 5370
app:
build:
context: .
env_file:
- .env-non-dev
container_name: fastapi_app
command: [ "/fastapi_app/docker/app.sh" ]
ports:
- 9999:8000
depends_on:
- db
- redis
celery:
build:
context: .
env_file:
- .env-non-dev
container_name: celery_app
command: [ "/fastapi_app/docker/celery-flower.sh", "celery" ]
depends_on:
- redis
flower:
build:
context: .
env_file:
- .env-non-dev
container_name: flower_app
command: [ "/fastapi_app/docker/celery-flower.sh", "flower" ]
depends_on:
- redis
- celery
ports:
- 8888:5555
# TO-DO: add volumes