Compare commits

...

2 commits

Author SHA1 Message Date
a49c8712a2 Start All angepasst 2022-09-09 11:13:09 +02:00
a4ceeff2f0 Add Adminer to Nextcloud stack 2022-09-09 11:13:09 +02:00
2 changed files with 40 additions and 4 deletions

View file

@ -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:

View file

@ -1,6 +1,14 @@
#/bin/bash/ #/bin/bash/
for dir in ./*/ ; do
(cd "$dir" && echo "[$dir]" && docker-compose up -d);
done
function up {
(cd "$1" && echo "[$1]" && docker-compose up -d "${@:2}");
}
up proxy;
up monitoring;
up nextcloud --scale app=3 --scale web=2;
up gitea;
up wallabag;
up www;
up firefoxsync;