This commit is contained in:
louiscklaw
2025-02-01 02:00:13 +08:00
parent b3da7aaef5
commit 2a2ec19826
12 changed files with 2238 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# CREDIT: https://github.com/shren207/nextjs-docker-compose
services:
share:
build: .
# ports:
# - 8080:8080
restart: always
volumes:
- $PWD/app:/app
working_dir: /app
# command: sleep infinity
command: bash entry.sh
labels:
- "traefik.enable=true"
- "traefik.http.routers.barbarbar-http.rule=Host(`barbarbar.iamon99.com`)"
- "traefik.http.routers.barbarbar-http.entrypoints=web"
- "traefik.http.routers.barbarbar-http.middlewares=barbarbar-https"
- "traefik.http.middlewares.barbarbar-https.redirectscheme.scheme=https"
- "traefik.http.routers.barbarbar.rule=Host(`barbarbar.iamon99.com`)"
- "traefik.http.routers.barbarbar.entrypoints=websecure"
- "traefik.http.routers.barbarbar.tls.certresolver=myresolver"
- "traefik.http.services.barbarbar.loadbalancer.server.port=8080"
networks:
default:
external:
name: traefik-proxy-network