-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (61 loc) · 1.43 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
version: '3'
services:
db:
image: postgres:latest
volumes:
- hackathon-postgresql:/var/lib/postgresql/data
env_file:
- .envs/postgresql
environment:
# set `${PGDATA}` to a subdirectory because PostgreSQL needs this
# directory to be empty and there is already `.gitkeep` file there
- PGDATA=/var/lib/postgresql/data/postgresql_data
rabbitmq:
image: rabbitmq:3.7-management
ports:
- "5672:5672"
- "15672:15672"
env_file:
- .envs/rabbitmq
volumes:
- hackathon-rabbitmq:/var/lib/rabbitmq
redis:
image: redis:latest
app: &app
container_name: hackathon-app
build:
context: .
dockerfile: ./docker/local/backend/Dockerfile
ports:
- "8000:8000"
depends_on:
- db
env_file:
- .envs/general
- .envs/flask
- .envs/celery
- .envs/postgresql
volumes:
- ./backend:/app
- ./shared/media:/app/shared/media
- ./shared/static:/app/shared/static
- ./shared/templates:/app/shared/templates
celeryworker:
<<: *app
container_name: hackathon-celeryworker
depends_on:
- rabbitmq
- redis
ports: []
command: /start_celeryworker.sh
celeryflower:
<<: *app
container_name: hackathon-celeryflower
depends_on:
- rabbitmq
ports:
- "5555:5555"
command: /start_celeryflower.sh
volumes:
hackathon-rabbitmq:
hackathon-postgresql: