forked from dveselov/docsbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.63 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
version: "3.7"
services:
web:
restart: always
build: ./docsbox
image: oikeusministerio/common-conversion:test
depends_on:
- redis
ports:
- "8000:8000"
volumes:
- ./docsbox/certificate.pem:/home/docsbox/certificate.pem
- ./media:/home/docsbox/media
networks:
- conversion-network
extra_hosts:
- it1.integraatiopalvelu.fi:${VIA_IP:-0.0.0.0}
- logdev.om.fi:${GRAYLOG_IP:-0.0.0.0}
environment:
GRAYLOG_HOST: ${GRAYLOG_HOST:-nowhere}
GRAYLOG_PORT: 445
GRAYLOG_SOURCE: local
command: gunicorn --config=docsbox/config/gunicorn.conf docsbox:app
rqworker:
restart: always
image: oikeusministerio/common-conversion:test
init: true
depends_on:
- redis
- web
volumes:
- ./docsbox/certificate.pem:/home/docsbox/certificate.pem
- ./media:/home/docsbox/media
- /config:/root/.config/libreoffice/4/user
networks:
- conversion-network
extra_hosts:
- it1.integraatiopalvelu.fi:${VIA_IP:-0.0.0.0}
- logdev.om.fi:${GRAYLOG_IP:-0.0.0.0}
environment:
GRAYLOG_HOST: ${GRAYLOG_HOST:-nowhere}
GRAYLOG_PORT: 445
GRAYLOG_SOURCE: local
command: rq worker -c docsbox
nginx:
restart: always
image: nginx
depends_on:
- web
networks:
- conversion-network
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
redis:
restart: always
image: redis:latest
networks:
- conversion-network
ports:
- "6379:6379"
volumes:
- redisdata:/data
volumes:
redisdata:
networks:
conversion-network: