forked from libresh/compose-matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 1.76 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
version: '2'
services:
#Piwik
piwik-db:
image: mariadb
volumes:
- './data/piwik/db:/var/lib/mysql'
environment:
MYSQL_ROOT_PASSWORD: '${PIWIK_MYSQL_ROOT_PASSWORD}'
piwik:
image: piwik
links:
- piwik-db
volumes:
- './data/piwik/config:/var/www/html/config'
- './ssmtp.conf:/etc/ssmtp/ssmtp.conf'
- './revaliases:/etc/ssmtp/revaliases'
piwik-cron:
image: piwik
links:
- piwik-db
volumes_from:
- piwik
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while /bin/true; do
su -s "/bin/bash" -c "/usr/local/bin/php /var/www/html/console core:archive" www-data
sleep 3600
done
EOF'
serve-piwik:
image: nginx
volumes:
- './conf/nginx/nginx-piwik.conf:/etc/nginx/nginx.conf:ro'
ports:
- '8081:8081'
links:
- piwik
volumes_from:
- piwik:ro
#Wordpress
wordpress-db:
image: mariadb
volumes:
- './data/wordpress/db:/var/lib/mysql'
environment:
MYSQL_ROOT_PASSWORD: '${WORDPRESS_MYSQL_ROOT_PASSWORD}'
MYSQL_DATABASE: wordpress
MYSQL_USER: '${WORDPRESS_MYSQL_USER}'
MYSQL_PASSWORD: '${WORDPRESS_MYSQL_PASSWORD}'
wordpress:
image: ellakcy/wordpressswithplugins
volumes:
- './data/wordpress/www:/var/www/html'
ports:
- '8085:80'
links:
- wordpress-db
environment:
WORDPRESS_DB_HOST: wordpress-db:/var/run/mysqld/mysqld.sock
WORDPRESS_DB_USER: '${WORDPRESS_MYSQL_USER}'
WORDPRESS_DB_PASSWORD: '${WORDPRESS_MYSQL_PASSWORD}'
WORDPRESS_ADMIN_USERNAME: '${WORDPRESS_ADMIN_USER}'
WORDPRESS_ADMIN_PASSWORD: '${WORDPRESS_ADMIN_PASSWORD}'
WORDPRESS_URL: '${WORDPRESS_URL}'
WORDPRESS_VERSION: 4.6.1