diff --git a/caddy/Caddyfile b/caddy/Caddyfile new file mode 100644 index 0000000..4785532 --- /dev/null +++ b/caddy/Caddyfile @@ -0,0 +1,19 @@ +example.com { + tls /ssl/certs/fullchain.cer /ssl/certs/example.com.key + reverse_proxy http://192.168.xx.xx:xxxx +} +https://example.com { + tls /ssl/certs/fullchain.cer /ssl/certs/example.net.key + reverse_proxy https://192.168.xx.x { + transport http { + tls + tls_insecure_skip_verify + } + } +} +example.com { + tls /ssl/certs/fullchain.cer /ssl/certs/example.com.key + reverse_proxy http://192.168.xx.xx + header Referrer-Policy no-referrer + header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive" +} diff --git a/caddy/docker-compose.yml b/caddy/docker-compose.yml new file mode 100644 index 0000000..7827dbf --- /dev/null +++ b/caddy/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.3' +networks: + caddy: +services: + caddy: + image: caddy:latest + restart: unless-stopped + container_name: caddy + ports: + - 80:80 + - 443:443 + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile + - ./site:/srv + - ./caddy_data:/data + - ./caddy_config:/config + - /root/.acme.sh/example.com/:/ssl/certs diff --git a/filebrowser/docker-compose.yml b/filebrowser/docker-compose.yml new file mode 100644 index 0000000..d78f8c3 --- /dev/null +++ b/filebrowser/docker-compose.yml @@ -0,0 +1,14 @@ +version: "3" + +services: + filebrowser: + image: hurlenko/filebrowser + user: "0:0" + ports: + - 6060:8080 + volumes: + - /mnt/DownTemp:/data + - ./config:/config + environment: + - FB_BASEURL=/filebrowser + restart: always diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..ce8df6d --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,19 @@ +version: '3.3' +services: + gitea: + container_name: gitea + restart: unless-stopped + privileged: true + ports: +# - '33022:22' + - '3000:3000' + volumes: + - './:/data' + - '/etc/localtime:/etc/localtime:ro' + image: 'gitea/gitea:latest' + labels: + - "traefik.enable=true" + - "traefik.http.routers.gitea.rule=Host(`gitea.com`)" + - "traefik.http.routers.gitea.entrypoints=websecure" + - "traefik.http.routers.gitea.tls.certresolver=letsencrypt" + - "traefik.http.services.gitea.loadbalancer.server.port=3000" diff --git a/home-assistant/docker-compose.yml b/home-assistant/docker-compose.yml new file mode 100644 index 0000000..a80c49b --- /dev/null +++ b/home-assistant/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.3' +services: + home-assistant: + restart: unless-stopped + container_name: homeassistant + volumes: + - './config:/config' + environment: + - TZ=Asia/Taipei + network_mode: host + image: 'ghcr.io/home-assistant/home-assistant:stable' diff --git a/homebox/docker-compose.yml b/homebox/docker-compose.yml new file mode 100644 index 0000000..adbaff2 --- /dev/null +++ b/homebox/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.4" + +services: + homebox: + image: ghcr.io/hay-kot/homebox:latest + container_name: homebox + restart: unless-stopped + environment: + - HBOX_LOG_LEVEL=info + - HBOX_LOG_FORMAT=text + - HBOX_WEB_MAX_UPLOAD_SIZE=10 + volumes: + - homebox-data:/data/ + ports: + - 3100:7745 diff --git a/memos/docker-compose.yml b/memos/docker-compose.yml new file mode 100644 index 0000000..96635e3 --- /dev/null +++ b/memos/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.3' +services: + memos: + container_name: memos + restart: unless-stopped + ports: + - '5230:5230' + volumes: + - './memos/:/var/opt/memos' + image: 'neosmemo/memos:latest' + labels: + - "traefik.enable=true" + - "traefik.http.routers.memos.rule=Host(`example.com`)" + - "traefik.http.routers.memos.entrypoints=websecure" + - "traefik.http.routers.memos.tls.certresolver=letsencrypt" diff --git a/plex/docker-compose.yml b/plex/docker-compose.yml new file mode 100644 index 0000000..d8882bb --- /dev/null +++ b/plex/docker-compose.yml @@ -0,0 +1,22 @@ +version: "3.7" +services: + plex: + image: plexinc/pms-docker + restart: unless-stopped + container_name: plexms + network_mode: host + + environment: + - PUID=0 + - PGID=0 + - TZ=Asia/Taipei + - PLEX_CLAIM=claim- + + hostname: PlexServer + + volumes: + - ./config:/config + - /mnt/nasmusic/HiFi:/music + + devices: + - /dev/dri:/dev/dri diff --git a/portainer/docker-compose.yml b/portainer/docker-compose.yml new file mode 100644 index 0000000..89b8dad --- /dev/null +++ b/portainer/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.3' +services: + portainer-ce: + ports: + - '8000:8000' + - '9000:9443' + container_name: portainer + restart: always + volumes: + - '/var/run/docker.sock:/var/run/docker.sock' + - './:/data' + image: portainer/portainer-ee:latest diff --git a/vaultwarden/docker-compose.yml b/vaultwarden/docker-compose.yml new file mode 100644 index 0000000..21ea125 --- /dev/null +++ b/vaultwarden/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.3' +services: + server: + container_name: vaultwarden + volumes: + - './vw-data/:/data/' + ports: + - '8081:80' + image: 'vaultwarden/server:latest'