This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
112 lines (110 loc) · 3.04 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# YAML Version: v1.0.10
version: '3.7'
services:
traefik:
image: traefik:v2.0.2
command:
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
- "--providers.docker.swarmMode=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=pib-net"
- "--entrypoints.web.address=:80"
ports:
- 80:80
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- pib-net
deploy:
placement:
constraints:
- node.role == manager
helloworld:
image: perfectpattern/hello-world-webservice:v1.0.1
networks:
- pib-net
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.helloworld.rule=Host(`helloworld.pib`)"
- "traefik.http.routers.helloworld.entrypoints=web"
- "traefik.http.services.helloworld.loadbalancer.server.port=80"
imposition:
image: perfectpattern/imposition-service:build-4
networks:
- pib-net
environment:
- SHEET_BLEED_MM=0
- HIDE_LABELS=false
- BOX_MARK_TO_FINAL_TRIM_THRESHOLD=2000
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.imposition.rule=Host(`imposition.pib`)"
- "traefik.http.routers.imposition.entrypoints=web"
- "traefik.http.services.imposition.loadbalancer.server.port=4200"
replicas: 1
update_config:
parallelism: 1
delay: 10s
order: start-first
volumes:
- /mnt/files/storage:/data
ports:
- "4200:4200"
logshipper:
image: perfectpattern/log-shipper-service:build-2
networks:
- pib-net
environment:
- SITE_CODE=<REPLACE>
- PROFILE=<REPLACE>
- ELASTIC_SEARCH_USER=<REPLACE>
- ELASTIC_SEARCH_PWD=<REPLACE>
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 20s
order: stop-first
ports:
- "24224:24224"
flow:
image: perfectpattern/flow-service:build-14
networks:
- pib-net
environment:
- SPO_URL=<REPLACE>
- SPO_TENANT=<REPLACE>
- SPO_USER=<REPLACE>
- SPO_PASSWORD=<REPLACE>
- SPO_WORKSPACE_ID=<REPLACE>
- INTEGRATION_NAME=default-pdf-integration
- INTEGRATION_LOCATION=/opt/custom-integration
- IMPOSITION_URL=http://imposition:4200
logging:
driver: fluentd
options:
tag: "{{.Name}}.{{.ID}}.{{.ImageName}}"
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.flow.rule=Host(`flow.pib`)"
- "traefik.http.routers.flow.entrypoints=web"
- "traefik.http.services.flow.loadbalancer.server.port=1881"
replicas: 1
update_config:
parallelism: 1
delay: 10s
order: stop-first
volumes:
- /mnt/files/integration:/opt/custom-integration
- /mnt/files/in:/data/in
- /mnt/files/out:/data/out
- /mnt/files/storage:/data/storage
ports:
- "1881:1881"
networks:
pib-net:
external: true