Compare commits
2 commits
262f14719a
...
a49c8712a2
Author | SHA1 | Date | |
---|---|---|---|
a49c8712a2 | |||
a4ceeff2f0 |
2 changed files with 40 additions and 4 deletions
|
@ -82,12 +82,40 @@ services:
|
|||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "200k"
|
||||
max-file: "5"
|
||||
networks:
|
||||
- nextcloud
|
||||
- mariadb
|
||||
labels:
|
||||
- "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:
|
||||
image: redis:alpine
|
||||
restart: unless-stopped
|
||||
|
@ -133,4 +161,4 @@ networks:
|
|||
web:
|
||||
external: true
|
||||
nextcloud:
|
||||
external: false
|
||||
mariadb:
|
||||
|
|
14
start-all.sh
14
start-all.sh
|
@ -1,6 +1,14 @@
|
|||
#/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;
|
||||
|
|
Loading…
Reference in a new issue