forked from jcioi/ioi-translation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (51 loc) · 1.37 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
version: '2.1'
services:
app:
restart: always
build: ./
volumes:
- ioi_static:/usr/src/app/static/
- ioi_media:/usr/src/app/media/
depends_on:
- postgres
- redis
environment:
SECRET_KEY: 'secret_key_for_development_3969b4b149439648a52aa663bd740a4f'
SESSION_COOKIE_SECURE: 0
DB_HOST: postgres
DB_USER: &db_user postgres
DB_PASSWORD: &db_password postgres
DB_NAME: &db_name ioitrans
REDIS_HOST: redis
REDIS_DB: 1
GUNICORN_WORKERS: 2
PRINT_SYSTEM_URL: http://192.168.10.21:5000
MONITOR_URL: http://192.168.110.5:8080 #JAVA app for monitoring user status on the big screen
DRAFT_PRINTER: draft_printer # Printer or class name used for DRAFT Translations Printing
FINAL_PRINTER: final_printer # Printer or class name used for FINAL Translations Printing
nginx:
restart: always
build: ./nginx/
ports:
- 9000:80
depends_on:
- app
volumes:
- ioi_static:/usr/src/app/static/:ro
- ioi_media:/usr/src/app/media/:ro
postgres:
restart: always
image: postgres:9.6-alpine
volumes:
- ioi_pgdata:/var/lib/postgresql/data/
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ioitrans
redis:
restart: always
image: redis:3.2-alpine
volumes:
ioi_pgdata:
ioi_static:
ioi_media: