forked from blaineventurine/home-automation-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.databases.yml
executable file
·119 lines (115 loc) · 3.18 KB
/
docker-compose.databases.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.7"
services:
mariadb:
image: mariadb:latest
container_name: "mariadb"
hostname: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- ${USERDIR}/mariadb/config:/config
- ${USERDIR}/mariadb/mysql:/var/lib/mysql
- ${BACKUP_DIR}/mariadbBackups:/home
ports:
- "${MARIA_DB_PORT}:${MARIA_DB_PORT}/tcp"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
#- MYSQL_USER=${MYSQL_USER}
- MYSQL_DATABASE=${MYSQL_DATABASE}
#- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
labels:
- traefik.enable=false
- com.centurylinklabs.watchtower.enable="false"
mariadb-backup:
container_name: mariadb-backup
image: tiredofit/mariadb-backup
links:
- mariadb
volumes:
- ${BACKUP_DIR}/mariadbBackups:/backups
environment:
- DB_SERVER=mariadb
- DB_NAME=${MYSQL_DATABASE}
- DB_USER=${MYSQL_ROOT_USER}
- DB_PASSWORD=${MYSQL_ROOT_PASSWORD}
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=+0002
- DB_CLEANUP_TIME=8640
- MD5=TRUE
- COMPRESSION=XZ
- SPLIT_DB=FALSE
restart: always
phpmyadmin:
hostname: phpmyadmin
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin:latest
restart: always
depends_on:
- "pihole"
- "mariadb"
links:
- mariadb:db
ports:
- 9999:80
environment:
- PMA_HOST=mariadb
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
labels:
- traefik.enable=false
mongo:
container_name: mongo
restart: always
image: mongo:latest
volumes:
- ${USERDIR}/mongo:/data/db
- /etc/localtime:/etc/localtime:ro
ports:
- "27017:27017"
influxdb:
container_name: influxdb
restart: always
image: influxdb:latest
environment:
- INFLUXDB_DB=${INFLUXDB_DB}
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
volumes:
# files cannot be created by docker-compose, it'll make it as a directory instead. Make sure to touch this file first.
- ${USERDIR}/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
- ${USERDIR}/influxdb/db:/var/lib/influxdb
ports:
- "8086:8086"
networks:
- traefik_proxy
- default
labels:
- "traefik.enable=false"
# grafana:
# container_name: grafana
# restart: always
# image: grafana/grafana:latest
# depends_on:
# - "influxdb"
# ports:
# - "3000:3000"
# user: "472"
# # to enable persistent storage, you might need to modify user permissions by creating this container in
# # interactive mode and adjusting the permissions from a shell first
# volumes:
# - ${USERDIR}/grafana:/var/lib/grafana
# chronograf:
# container_name: chronograf
# restart: always
# image: chronograf:latest
# depends_on:
# - "influxdb"
# volumes:
# - ${USERDIR}/chronograf:/var/lib/chronograf
# ports:
# - "8888:8888"
# environment:
# - PGID=${PGID}
# - PUID=${PUID}