Initial commit

This commit is contained in:
mr-vercetti
2022-02-03 19:21:52 +00:00
commit a3c9738f2b
9 changed files with 238 additions and 0 deletions

17
docker/.env.example Normal file
View File

@ -0,0 +1,17 @@
PUID=
PGID=
TIMEZONE=
APPS_DIR=
DATA_DIR=
DOMAIN=
# nextcloud-db
DB_ROOT_PW=
DB_NAME=
DB_USER=
DB_PW=
# wireguard
WG_URL=
WG_PEERS=
WG_ALLOWEDIPS=

View File

@ -0,0 +1,19 @@
version: "3.7"
services:
ddclient:
image: lscr.io/linuxserver/ddclient
container_name: ddclient
networks:
- ddclient
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${APPS_DIR}/ddclient:/config
restart: unless-stopped
networks:
ddclient:
name: ddclient

View File

@ -0,0 +1,57 @@
version: "3.7"
services:
nextcloud-cache:
image: redis
container_name: nextcloud-cache
networks:
- nextcloud
ports:
- 6379:6379
restart: unless-stopped
nextcloud-db:
image: lscr.io/linuxserver/mariadb
container_name: nextcloud-db
networks:
- nextcloud
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PW}
- TZ=${TIMEZONE}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PW}
volumes:
- ${APPS_DIR}/nextcloud-db:/config
ports:
- 3306:3306
restart: unless-stopped
nextcloud:
image: lscr.io/linuxserver/nextcloud
container_name: nextcloud
networks:
- proxy
- nextcloud
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${APPS_DIR}/nextcloud:/config
- ${DATA_DIR}/nextcloud-data:/data
ports:
- 8443:443
restart: unless-stopped
depends_on:
- nextcloud-db
- nextcloud-cache
networks:
proxy:
external:
name: proxy
nextcloud:
name: nextcloud

View File

@ -0,0 +1,28 @@
version: "3.7"
services:
swag:
image: lscr.io/linuxserver/swag
container_name: swag
networks:
- proxy
cap_add:
- NET_ADMIN
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- URL=${DOMAIN}
- SUBDOMAINS=wildcard
- VALIDATION=dns
- DNSPLUGIN=cloudflare
volumes:
- ${APPS_DIR}/swag:/config
ports:
- 443:443
- 80:80
restart: unless-stopped
networks:
proxy:
name: proxy

View File

@ -0,0 +1,36 @@
version: "3.7"
services:
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
networks:
- wireguard
- proxy
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- SERVERURL=${WG_URL}
- SERVERPORT=51820
- PEERS=${WG_PEERS}
- PEERDNS=auto
- ALLOWEDIPS=${WG_ALLOWEDIPS}
volumes:
- ${APPS_DIR}/wireguard:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
networks:
proxy:
external:
name: proxy
wireguard:
name: wireguard