-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (61 loc) · 1.75 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
---
version: '2.1'
volumes:
smartweb_events-blobstorage:
smartweb_events-postgres:
services:
instance:
build:
context: .
dockerfile: Dockerfile
image: smartweb/events:latest
ports:
- "8080:8080"
links:
- postgres:db
depends_on:
- postgres
- reverse-proxy
volumes:
- ./zodbconvert.cfg:/plone/zodbconvert.cfg
- smartweb_events-blobstorage:/data/blobstorage
environment:
- MEMCACHE_SERVER=172.17.0.1
- MEMCACHE_DEFAULT_AGE=10800
- ENV=dev
- CACHING_SERVERS=http://varnish.staging.imio.be:5000
- DOMAINS=localhost
- RELSTORAGE_DB=zope
- RELSTORAGE_USER=zope
- RELSTORAGE_PASSWORD=zope
- RELSTORAGE_HOSTNAME=db
- RELSTORAGE_PORT=5432
- PROJECT_ID=test
- ACTIVE_BIGBANG=True
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:8080/Plone/VirtualHostRoot"
reverse-proxy:
image: traefik:v2.4
command: --api.insecure=true --providers.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
postgres:
image: postgres:11.10
environment:
- POSTGRES_DB=zope
- POSTGRES_USER=zope
- POSTGRES_PASSWORD=zope
volumes:
- smartweb_events-postgres:/var/lib/postgresql/data
memcached:
image: memcached:1.5.20
command:
- "-m"
- "1024"