Add Adminer to Nextcloud stack
This commit is contained in:
parent
262f14719a
commit
a4ceeff2f0
1 changed files with 29 additions and 1 deletions
|
@ -82,12 +82,40 @@ services:
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "200k"
|
||||||
|
max-file: "5"
|
||||||
networks:
|
networks:
|
||||||
- nextcloud
|
- nextcloud
|
||||||
|
- mariadb
|
||||||
labels:
|
labels:
|
||||||
- "docker.group=netxtcloud"
|
- "docker.group=netxtcloud"
|
||||||
|
|
||||||
|
|
||||||
|
adminer:
|
||||||
|
image: adminer
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
- mariadb
|
||||||
|
environment:
|
||||||
|
- ADMINER_DEFAULT_SERVER=db
|
||||||
|
- ADMINER_DESIGN=flat
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.adminer.rule=Host(`adminer.${DOMAIN}`)"
|
||||||
|
- "traefik.http.routers.adminer.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.adminer.tls.certresolver=netcup"
|
||||||
|
- "traefik.http.routers.adminer.tls.options=intermediate@file"
|
||||||
|
- "traefik.http.routers.adminer.middlewares=adminerauth"
|
||||||
|
- "traefik.http.middlewares.adminerauth.basicauth.users=${HTPASSWD_ADMINER}"
|
||||||
|
- "docker.group=netxtcloud"
|
||||||
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -133,4 +161,4 @@ networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
nextcloud:
|
nextcloud:
|
||||||
external: false
|
mariadb:
|
||||||
|
|
Loading…
Reference in a new issue