-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.49 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
version: '2.4'
services:
zeo:
build:
context: .
image: imiolibrary
volumes:
- ./var/blobstorage:/data/blobstorage
- ./var/filestorage:/data/filestorage
- ./src:/plone/src
command: bin/zeoserver fg
expose:
- 8100
healthcheck:
# test: ["CMD-SHELL", "nc", "-z", "w5", "127.0.0.1", "8100", "||", "exit", "1"]
test: ["CMD", "nc", "-z", "-w5", "127.0.0.1", "8100"]
instance:
image: imiolibrary
ports:
- 8080:8080
links:
- zeo:db
depends_on:
- reverseproxy
volumes:
- ./var/blobstorage:/data/blobstorage
- ./src:/plone/src
environment:
- PLONE_EXTENSION_IDS=plone.app.caching:default,plonetheme.barceloneta:default,library.policy:default
- DEFAULT_LANGUAGE=fr
- ACTIVE_BIGBANG=True
command: fg
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.instance.rule=Host(`portal.localhost`)'
- 'traefik.http.services.instance.loadbalancer.server.port=8080'
- "traefik.http.routers.instance.middlewares=add-plone"
- "traefik.http.middlewares.add-plone.addprefix.prefix=/VirtualHostBase/http/portal.localhost/Plone/VirtualHostRoot"
reverseproxy:
image: traefik
command:
- '--api.insecure=true'
- '--providers.docker=true'
ports:
- '80:80' # The HTTP port
- '8000:8080' # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events