-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmariadb+pma.yml
79 lines (76 loc) · 2.48 KB
/
mariadb+pma.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
version: "3.7"
networks:
traefik:
name: traefik
mariadb:
name: mariadb
services:
# MariaDB – Database Server for your Apps
mariadb:
image: linuxserver/mariadb
container_name: mariadb
hostname: mariadb
networks:
mariadb:
volumes:
- ${USERDIR}/mariadb:/config
- ${USERDIR}/guacamole/init:/docker-entrypoint-initdb.d:ro #check if needed
- ${USERDIR}/guacamole/data:/var/lib/mysql/data:rw #check if needed
ports:
- target: 3306
published: 3306
protocol: tcp
mode: host
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
restart: always
# phpMyAdmin - WebUI for MariaDB
pma:
image: phpmyadmin/phpmyadmin
container_name: pma
hostname: pma
networks:
traefik:
mariadb:
dns:
- 192.168.1.1
# ports:
# - target: 80
# published: 10000
environment:
TZ: ${TZ}
PMA_HOST: mariadb
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
labels:
traefik.enable: "true"
traefik.docker.network: traefik
traefik.backend: pma
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: Host:pma.${DOMAINNAME}
traefik.frontend.auth.forward.address: http://traefik-forward-auth:4181
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLHost: pma.${DOMAINNAME}
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
traefik.frontend.headers.frameDeny: "true"
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
restart: always