-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (72 loc) · 2.49 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
78
79
80
81
############################################################################
## DOCKER COMPOSE FILE ##
## Author: Frederic Depuydt ##
## Mail: frederic.depuydt@outlook.com ##
## ##
## Contains: ##
## - MARIADB ##
## - PhpMyAdmin ##
## - Adminer ##
## ##
############################################################################
version: '3.7'
services:
mariadb:
container_name: mariadb
image: linuxserver/mariadb
restart: unless-stopped
networks:
- db
volumes:
- mariadb-conf:/config
- mariadb-data:/var/lib/mysql
env_file: ./config/.env
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
restart: unless-stopped
networks:
- web
- db
env_file: ./config/.env
environment:
- PMA_HOST=mariadb.db
#- PMA_ARBITRARY=1
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.phpmyadmin.entrypoints=websecure"
- "traefik.http.routers.phpmyadmin.rule=Host(`phpmyadmin.${DOMAINNAME}`)"
- "traefik.http.routers.phpmyadmin.tls.certResolver=tls"
- "traefik.http.routers.phpmyadmin.service=phpmyadmin"
- "traefik.http.services.phpmyadmin.loadbalancer.server.port=80"
adminer:
container_name: adminer
image: adminer
restart: unless-stopped
networks:
- web
- db
env_file: ./config/.env
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.adminer.entrypoints=websecure"
- "traefik.http.routers.adminer.rule=Host(`adminer.${DOMAINNAME}`)"
- "traefik.http.routers.adminer.tls.certResolver=tls"
- "traefik.http.routers.adminer.service=adminer"
- "traefik.http.services.adminer.loadbalancer.server.port=8080"
networks:
web:
external: true
db:
external: true
volumes:
mariadb-conf:
name: mariadb-conf
mariadb-data:
name: mariadb-data