forked from occrp-attic/convert-document
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmedium.yml
76 lines (70 loc) · 1.54 KB
/
medium.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
version: '3'
volumes:
previews:
networks:
shared:
external:
name: shared
services:
preview-server:
image: btimby/preview-server
volumes:
- ./fixtures:/mnt/files:ro
- ./:/app:ro
- previews:/mnt/store
labels:
- autoheal=true
healthcheck:
test: ["CMD", "curl", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 0
networks:
- shared
tmpfs:
- /tmp
environment:
- PVS_STORE=/mnt/store
# - PVS_UID=101
# - PVS_GID=101
- PVS_LOGLEVEL=WARNING
- PVS_HTTP_LOGLEVEL=INFO
- PVS_SOFFICE_ADDR=haproxy
- PVS_SOFFICE_PORT=2002
- PVS_METRICS=off
soffice-server:
image: btimby/preview-soffice
volumes:
- ./fixtures:/mnt/files:ro
labels:
- autoheal=true
healthcheck:
test: ["CMD", "bash", "-c", "echo 'Hello world' | unoconv --server=127.0.0.1 --port=2002 --stdin --stdout > /dev/null"]
interval: 30s
timeout: 10s
retries: 0
networks:
- shared
tmpfs:
- /tmp
environment:
- PVS_SOFFICE_ADDR=0.0.0.0
- PVS_SOFFICE_PORT=2002
haproxy:
image: haproxy:2.1
networks:
- shared
ports:
- 3000:3000
- 3001:8080
volumes:
- ./docker/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
autoheal:
image: willfarrell/autoheal
restart: always
networks:
- shared
environment:
- AUTOHEAL_CONTAINER_LABEL=autoheal
volumes:
- /var/run/docker.sock:/var/run/docker.sock