-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
49 lines (45 loc) · 1.04 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
version: "3"
services:
web:
image: geekzone/backend:${TAG}
build:
context: .
dockerfile: docker/backend/Dockerfile
container_name: backend
command: >
sh -c "python3 manage.py wait_for_database &&
python3 manage.py migrate && \
python3 manage.py runserver 0.0.0.0:8000"
env_file:
- web/.env.dev
ports:
- "8000:8000"
depends_on:
- db
- celery_worker
db:
image: postgres
container_name: postgres
environment:
- POSTGRES_PASSWORD=password
env_file:
- web/.env.dev
restart: unless-stopped
celery_worker:
build:
context: .
dockerfile: docker/backend/Dockerfile
container_name: celery
command: celery -A web worker -l INFO # If logging level omitted, default is "warning"
env_file:
- web/.env.dev
depends_on:
- rabbitmq
restart: 'no'
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
hostname: geekzone-rabbit
user: rabbitmq
ports:
- "15672:15672"