forked from fluentlydata/piwik_docker_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (49 loc) · 890 Bytes
/
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
version: '2'
# remove port bind, virtual host and front-proxy net for production
services:
db:
image: mysql
volumes:
- db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- VIRTUAL_HOST=${MYSQL_HOST}
networks:
- piwik-net
pwapp:
image: piwik
volumes:
- app-config:/var/www/html/config
depends_on:
- db
networks:
- piwik-net
web:
build: nginx
volumes:
- web-certs:/etc/ssl/private/
expose:
- "80"
- "443"
volumes_from:
- pwapp
environment:
- VIRTUAL_HOST=${PIWIK_HOST}
depends_on:
- pwapp
networks:
- piwik-net
example:
build: ./example
expose:
- "80"
environment:
- VIRTUAL_HOST=${CLIENT_HOST}
networks:
- piwik-net
networks:
piwik-net:
volumes:
db-data:
app-config:
web-certs: