-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (67 loc) · 1.59 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
version: '2'
volumes:
assets:
media:
services:
postgres:
image: postgres
hostname: postgres
environment:
POSTGRES_USER: pootle
POSTGRES_PASSWORD: cNEujap1w6OMSDGDIeE5TYS7aKl
POSTGRES_DB: pootle
container_name: pootle_postgres
elasticsearch:
image: elasticsearch
hostname: elasticsearch
container_name: pootle_elasticsearch
redis:
image: redis
hostname: redis
container_name: pootle_redis
nginx:
image: nginx
hostname: nginx
links:
- pootle
volumes:
- ./nginx/pootle-http.conf:/etc/nginx/conf.d/default.conf
- ./nginx/uwsgi_params:/etc/nginx/uwsgi_params
- assets:/var/www/pootle/assets
- media:/var/www/pootle/media
container_name: pootle_nginx
pootle:
build:
context: .
command: [
'uwsgi',
'--master',
'--socket', '0.0.0.0:8000',
'--wsgi-file', '/etc/pootle/wsgi.py',
'--callable', 'application'
]
volumes:
- ./wsgi.py:/etc/pootle/wsgi.py
- ./pootle.conf:/etc/pootle/pootle.conf
- ./translations:/home/pootle/translations
- assets:/var/www/pootle/assets
- media:/var/www/pootle/media
environment: &app_env
DJANGO_SETTINGS_MODULE: "pootle.settings"
POOTLE_SETTINGS: "/etc/pootle/pootle.conf"
depends_on:
- postgres
- redis
- elasticsearch
container_name: pootle_app
rqworker:
build:
context: .
command: ['pootle', 'rqworker']
depends_on:
- pootle
volumes_from:
- pootle
environment:
<<: *app_env
container_name: pootle_rqworker