-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·52 lines (51 loc) · 1 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
version: '3.3'
services:
db:
image: postgres:latest
container_name: tarzan-db
env_file:
- .env
ports:
- "${DATABASE_PORT}:${DATABASE_PORT}"
web:
build:
context: .
dockerfile: Dockerfile
container_name: tarzan-web
env_file:
- .env
ports:
- "${HOST_PORT}:${HOST_PORT}"
depends_on:
- db
environment:
- HOST_PORT=${HOST_PORT}
command: ["./scripts/django-deploy.sh", "${HOST_PORT}"]
volumes:
- .:/app
redis:
image: redis:latest
container_name: tarzan-redis
env_file:
- .env
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
celery:
build:
context: .
container_name: tarzan-celery
depends_on:
- redis
- web
env_file:
- .env
command: celery -A src.celery worker -l info
flower:
build:
context: .
container_name: tarzan-flower
depends_on:
- celery
env_file:
- .env
command: celery -A src --broker=${CELERY_BROKER_URL} flower