bxl system
This commit is contained in:
parent
1928e1c4a7
commit
031f010e0d
|
@ -8,21 +8,28 @@ services:
|
||||||
- "--providers.docker=true"
|
- "--providers.docker=true"
|
||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
- "--providers.docker.network=external"
|
- "--providers.docker.network=external"
|
||||||
- "--entrypoints.web.address=:80"
|
- "--entrypoints.internal.address=:80"
|
||||||
- "--entrypoints.websecure.address=:443"
|
- "--entrypoints.internalsecure.address=:443"
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
- "--entrypoints.internal.http.redirections.entryPoint.to=internalsecure"
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
- "--entrypoints.internal.http.redirections.entryPoint.scheme=https"
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.permanent=true"
|
- "--entrypoints.internal.http.redirections.entryPoint.permanent=true"
|
||||||
- "--certificatesresolvers.http.acme.httpchallenge=true"
|
- "--certificatesresolvers.http.acme.httpchallenge=true"
|
||||||
- "--certificatesresolvers.http.acme.httpchallenge.entrypoint=web"
|
- "--certificatesresolvers.http.acme.httpchallenge.entrypoint=external"
|
||||||
- "--certificatesresolvers.http.acme.email=acme@bhasher.com"
|
- "--certificatesresolvers.http.acme.email=acme@bhasher.com"
|
||||||
- "--certificatesresolvers.http.acme.storage=acme.json"
|
- "--certificatesresolvers.http.acme.storage=acme.json"
|
||||||
|
- "--entrypoints.external.address=:81"
|
||||||
|
- "--entrypoints.externalsecure.address=:444"
|
||||||
|
- "--entrypoints.external.http.redirections.entryPoint.to=externalsecure"
|
||||||
|
- "--entrypoints.external.http.redirections.entryPoint.scheme=https"
|
||||||
|
- "--entrypoints.external.http.redirections.entryPoint.permanent=true"
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Paris
|
- TZ=Europe/Paris
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
- "81:81"
|
||||||
|
- "444:444"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- type: bind
|
- type: bind
|
||||||
|
@ -31,48 +38,24 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- external
|
- external
|
||||||
|
|
||||||
portainer:
|
portainerce:
|
||||||
container_name: portainer
|
container_name: portainerce
|
||||||
image: portainer/portainer-ce:latest
|
image: portainer/portainer-ce:latest
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.portainer.rule=Host(`portainer.nas.bhasher.com`)"
|
- "traefik.http.routers.portainer.rule=Host(`portainer.nas.bhasher.com`)"
|
||||||
- "traefik.http.routers.portainer.entrypoints=websecure"
|
- "traefik.http.routers.portainer.entrypoints=externalsecure,internalsecure"
|
||||||
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
||||||
- "traefik.http.routers.portainer.tls=true"
|
- "traefik.http.routers.portainer.tls=true"
|
||||||
- "traefik.http.routers.portainer.tls.certresolver=http"
|
- "traefik.http.routers.portainer.tls.certresolver=http"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- /home/debian/containers/portainer:/data
|
- /mnt/Main/containers/portainer:/data
|
||||||
networks:
|
networks:
|
||||||
- external
|
- external
|
||||||
|
|
||||||
|
|
||||||
wireguard:
|
|
||||||
container_name: wireguard
|
|
||||||
image: lscr.io/linuxserver/wireguard:latest
|
|
||||||
volumes:
|
|
||||||
- /mnt/Main/containers/wireguard/config:/config
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
ports:
|
|
||||||
- 51820:51820/udp
|
|
||||||
environment:
|
|
||||||
TZ: Europe/Paris
|
|
||||||
SERVERURL: vpn.bhasher.com
|
|
||||||
SERVERPORT: 51820
|
|
||||||
PEERS: 5
|
|
||||||
PEERDNS: auto
|
|
||||||
INTERNAL_SUBNET: 10.13.13.0
|
|
||||||
ALLOWEDIPS: 0.0.0.0/0
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYS_MODULE
|
|
||||||
sysctls:
|
|
||||||
- net.ipv4.conf.all.src_valid_mark=1
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
external:
|
external:
|
||||||
name: external
|
name: external
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
docker-compose -p system -f system.docker-compose.yaml up -d
|
Loading…
Reference in New Issue