-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.63 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
76
77
version: '3.7'
services:
matomo:
image: matomo:4
container_name: matomo
restart: unless-stopped
env_file: ./secrets/MATOMO_SECRET_ENV
depends_on:
# - mysql
- proxy
environment:
- MATOMO_DATABASE_HOST=analytics-1.cryruszpxgql.us-east-2.rds.amazonaws.com
- MATOMO_DATABASE_DBNAME=matomo
- MATOMO_DATABASE_USERNAME=matomo
- TZ=America/Indiana/Indianapolis
networks:
- analytics
# Expose via the reverse proxy
# ports:
# - 8080:80/tcp
volumes:
- matomo:/var/www/html
proxy:
image: trace/haproxy
build:
context: ./haproxy
container_name: proxy
restart: unless-stopped
environment:
- TZ=America/Indiana/Indianapolis
networks:
- public
- analytics
ports:
- 80:80/tcp
- 443:443/tcp
volumes:
- ./secrets/certs:/certs:ro
# mysql:
# image: trace/mysql
# build:
# context: mysql
# container_name: mysql
# restart: unless-stopped
# environment:
# - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/MYSQL_ROOT_PASSWORD
# - TZ=America/Indiana/Indianapolis
# secrets:
# - MYSQL_ROOT_PASSWORD
# - MATOMO_SECRET_ENV
# networks:
# - analytics
# # Accessed via the docker network
# # Doesn't need to be exposed on the host
# # ports:
# # - 3306:3306/tcp
# volumes:
# - mysql:/var/lib/mysql
secrets:
MATOMO_SECRET_ENV:
file: ./secrets/MATOMO_SECRET_ENV
# MYSQL_ROOT_PASSWORD:
# file: ./secrets/MYSQL_ROOT_PASSWORD
networks:
public:
driver: bridge
analytics:
driver: bridge
volumes:
matomo:
mysql: