-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
109 lines (99 loc) · 2.22 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "3.4"
x-database-variables: &database-variables
POSTGRES_USER: root
POSTGRES_PASSWORD: audiencias
POSTGRES_DB: audiencias
x-application-variables: &application-variables
ADMIN_PASSWORD: 123
ADMIN_EMAIL: [email protected]
DATABASE_ENGINE: postgresql_psycopg2
DATABASE_USER: root
DATABASE_PASSWORD: audiencias
DATABASE_NAME: audiencias
DATABASE_HOST: db
DATABASE_PORT: 5432
DEBUG: 'False'
REDIS_SERVER: redis
WEBSERVICE_URL: https://infoleg.camara.leg.br/ws-pauta/evento/interativo
COMPRESS_ENABLED: 'True'
COMPRESS_OFFLINE: 'True'
COMPRESS_ROOT_DIR: 'public'
URL_PREFIX:
FORCE_SCRIPT_NAME:
STATIC_URL: /static/
ENABLE_REMOTE_USER: 'False'
services:
nginx:
image: nginx:1.15.10
depends_on:
- web
volumes:
- ./:/var/labhacker/audiencias:z
- ./config/etc/nginx/conf.d:/etc/nginx/conf.d:z
ports:
- "8000:80"
db:
image: postgres:9.6
environment: *database-variables
worker:
image: audiencias-publicas_web:latest
command: ./start-worker.sh
links:
- redis
- db
environment:
<<: *database-variables
<<: *application-variables
volumes:
- data:/var/labhacker/audiencias
depends_on:
- "web"
web:
build: .
command: ./start-web.sh
restart: on-failure
links:
- db
- redis
volumes:
- ./:/var/labhacker/audiencias
environment:
<<: *database-variables
<<: *application-variables
expose:
- "8000"
depends_on:
- db
- redis
redis:
image: redis:alpine
celeryworker:
image: audiencias-publicas_web:latest
command: bash -c "celery -A audiencias_publicas worker -l info"
volumes:
- .:/var/labhacker/audiencias
environment:
<<: *database-variables
<<: *application-variables
restart: always
depends_on:
- db
- redis
- web
celerybeat:
image: audiencias-publicas_web:latest
command: ./start_celery_beat.sh
volumes:
- .:/var/labhacker/audiencias
environment:
<<: *database-variables
<<: *application-variables
restart: always
depends_on:
- db
- redis
- web
- celeryworker
volumes:
data:
driver: local