Upload files to "compose/mariadb"
This commit is contained in:
parent
5b2728cdaf
commit
50d1f655d5
3
compose/mariadb/.env
Normal file
3
compose/mariadb/.env
Normal file
@ -0,0 +1,3 @@
|
||||
MYSQL_ROOT_PASSWORD=
|
||||
MYSQL_USER=
|
||||
MYSQL_PASSWORD=
|
43
compose/mariadb/docker-compose.yml
Normal file
43
compose/mariadb/docker-compose.yml
Normal file
@ -0,0 +1,43 @@
|
||||
networks:
|
||||
backend:
|
||||
external: true
|
||||
services:
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:latest
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
container_name: mariadb
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Amsterdam
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- /docker/appdata/mariadb/config:/config
|
||||
ports:
|
||||
- 3306:3306
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PMA_HOST=mariadb
|
||||
- PMA_PORT=3306
|
||||
networks:
|
||||
- backend
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.phpmyadmin.entrypoints=websecure
|
||||
- traefik.http.routers.phpmyadmin.rule=Host(`admin.example.com`)
|
||||
- traefik.http.routers.phpmyadmin.tls=true
|
||||
- traefik.http.routers.phpmyadmin.tls.certresolver=production
|
||||
- traefik.http.routers.phpmyadmin.middlewares=authentik@file
|
||||
- traefik.http.routers.phpmyadmin.service=phpmyadmin
|
||||
- traefik.http.services.phpmyadmin.loadBalancer.server.port=80
|
Loading…
Reference in New Issue
Block a user