-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.05 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
53
54
55
56
57
58
version: "3"
services:
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./contrib/nginx:/etc/nginx/conf.d
- static_volume:/srv/www/static
- media_volume:/srv/www/media
depends_on:
- app_gestao
app_gestao:
image: docker.pkg.github.com/vespene/django-gestao-rh/gestao-rh:dev
ports:
- "8000:8000"
volumes:
- "static_volume:/app/static"
- "media_volume:/app/media"
env_file:
- ./.env
depends_on:
- db
celery:
build:
context: .
env_file:
- ./.env
command: >
celery -A gestao_rh worker -l info -B --scheduler django_celery_beat.schedulers:DatabaseScheduler
depends_on:
- redis
- app_gestao
db:
image: postgres:latest
env_file:
- ./.env
ports:
- "5432:5432"
volumes:
- "postgres_data:/var/lib/postgresql/data/"
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- "redis_data:/data"
volumes:
postgres_data:
redis_data:
static_volume:
media_volume: