forked from occrp-attic/convert-document
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsmall.yml
69 lines (64 loc) · 1.41 KB
/
small.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
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
ports:
- 3000:3000
tmpfs:
- /tmp
environment:
- PVS_STORE=/mnt/store
# - PVS_UID=101
# - PVS_GID=101
- PVS_LOG_LEVEL=DEBUG
- PVS_HTTP_LOG_LEVEL=DEBUG
- PVS_SOFFICE_ADDR=soffice-server
- PVS_SOFFICE_PORT=2002
- PVS_METRICS=off
- PVS_MAX_OFFICE_WORKERS=1
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
autoheal:
image: willfarrell/autoheal
restart: always
networks:
- shared
environment:
- AUTOHEAL_CONTAINER_LABEL=autoheal
volumes:
- /var/run/docker.sock:/var/run/docker.sock