-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.67 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
version: '2.4'
services:
zeo:
build:
context: .
dockerfile: Dockerfile
image: iasmartweb/mutual
volumes:
- ./var/blobstorage:/home/imio/imio-website/var/blobstorage
- ./var/filestorage:/home/imio/imio-website/var/filestorage
command: /home/imio/imio-website/bin/zeoserver fg
healthcheck:
test: ['CMD', 'nc', '-z', '-w5', '127.0.0.1', '8100']
instance:
image: iasmartweb/mutual
ports:
- "8081:8081"
links:
- zeo:db
depends_on:
- reverseproxy
volumes:
- ./var/blobstorage:/home/imio/imio-website/var/blobstorage
- ./var/instance/minisites:/home/imio/imio-website/var/instance/minisites
environment:
- MEMCACHE_SERVER=172.17.0.1
- MEMCACHE_DEFAULT_AGE=10800
- ENV=dev
- CACHING_SERVERS=http://frontend1.interne.imio.be:5000 http://frontend2.lan.imio.be:5000 http://frontend3.lan.imio.be:5000
- DOMAINS=localhost
- ZEO_HOST=db
- ZEO_PORT=8100
- ZODB_CACHE_SIZE=30000
- ZEO_CLIENT_CACHE_SIZE=256MB
command: /home/imio/imio-website/bin/instance fg
healthcheck:
test: ['CMD', 'nc', '-z', '-w5', '127.0.0.1', '8081']
reverseproxy:
image: traefik:1.7 # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Træfik to listen to docker
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
- $PWD/traefik.toml:/etc/traefik/traefik.toml
varnish:
image: varnish:6.5.1
volumes:
- $PWD/varnish.vcl:/etc/varnish/default.vcl:ro