mirror of
https://github.com/mr-vercetti/homeserver.git
synced 2025-07-01 17:45:32 +02:00
Initial commit
This commit is contained in:
17
docker/.env.example
Normal file
17
docker/.env.example
Normal 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=
|
19
docker/stacks/ddclient/ddclient.yml
Normal file
19
docker/stacks/ddclient/ddclient.yml
Normal 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
|
57
docker/stacks/nextcloud/nextcloud.yml
Normal file
57
docker/stacks/nextcloud/nextcloud.yml
Normal 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
|
28
docker/stacks/swag/swag.yml
Normal file
28
docker/stacks/swag/swag.yml
Normal 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
|
36
docker/stacks/wireguard/wireguard.yml
Normal file
36
docker/stacks/wireguard/wireguard.yml
Normal 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
|
Reference in New Issue
Block a user