-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
75 lines (68 loc) · 1.69 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
version: '3.7'
services:
php:
image: registry.gitlab.com/opencontent/servizipubblici/php
restart: unless-stopped
depends_on:
- postgres
- solr
environment:
EZ_ROOT: /var/www/html
EZ_INSTANCE: trentoservizipubblici
nginx:
image: registry.gitlab.com/opencontent/servizipubblici/nginx
restart: unless-stopped
environment:
EZ_INSTANCE: trentoservizipubblici
labels:
traefik.frontend.rule: 'Host:servizipubblici.localtest.me'
depends_on:
- php
varnish:
image: wodby/varnish
restart: unless-stopped
depends_on:
- nginx
environment:
VARNISH_BACKEND_GRACE: 10m
VARNISH_BACKEND_HOST: nginx
VARNISH_CACHE_STATIC_FILES: 1
VARNISH_DEFAULT_TTL: 300s
VARNISH_ERRORS_GRACE: 60s
solr:
image: 'registry.gitlab.com/opencontent/solr:4.10.4'
command: '-s /opt/ez'
restart: unless-stopped
volumes:
- './conf.d/solr:/opt/ez/'
postgres:
image: 'postgres:9.6-alpine'
restart: unless-stopped
labels:
traefik.enable: false
environment:
POSTGRES_DB: trentoservizipubblici
POSTGRES_USER: openpa
POSTGRES_PASSWORD: openp4ssword
volumes:
- './sql:/docker-entrypoint-initdb.d'
- 'pgdata:/var/lib/postgresql/data'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
traefik:
image: registry.gitlab.com/opencontent/traefik-localtestme:latest
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '8080:8080' # Dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
html:
dfs:
solrdata:
pgdata: