Last active
January 15, 2024 07:52
-
-
Save zlwu/a1300834735cb6606c154c8e7b4366d6 to your computer and use it in GitHub Desktop.
dockge简化平替
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# dozzle/compose.yaml | |
# | |
version: "3.8" | |
services: | |
app: | |
container_name: dozzle | |
image: amir20/dozzle:latest | |
restart: unless-stopped | |
cpus: 0.25 | |
mem_limit: 64m | |
labels: | |
- swag=enable | |
- swag_auth=authelia | |
- homepage.group=App | |
- homepage.name=Dozzle | |
- homepage.icon=dozzle.png | |
- homepage.href=https://dozzle.${DOMAIN}:${PORT} | |
- homepage.description=Docker status & logs | |
environment: | |
- DOZZLE_REMOTE_HOST=tcp://dockerproxy:2375|docker | |
- DOZZLE_NO_ANALYTICS=true | |
expose: | |
- 8080 | |
networks: | |
- ingress_web | |
networks: | |
ingress_web: | |
external: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# homepage/compose.yaml | |
# | |
version: "3.8" | |
services: | |
app: | |
image: ghcr.io/gethomepage/homepage:latest | |
restart: unless-stopped | |
container_name: homepage | |
labels: | |
- swag=enable | |
- swag_auth=authelia | |
environment: | |
- PUID=$PUID | |
- PGID=$PGID | |
- TZ=$TZ | |
expose: | |
- 3000 | |
volumes: | |
- ./config:/app/config | |
networks: | |
- ingress_web | |
networks: | |
ingress_web: | |
external: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ingress/compose.yaml | |
# | |
version: "3.8" | |
services: | |
dockerproxy: | |
container_name: dockerproxy | |
image: haproxy:2.2-alpine # base on tecnativa/docker-socket-proxy | |
restart: unless-stopped | |
cpus: 0.25 | |
mem_limit: 64m | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg # https://github.com/Tecnativa/docker-socket-proxy/blob/master/haproxy.cfg | |
environment: | |
- ALLOW_RESTARTS=0 | |
- ALLOW_STOP=0 | |
- ALLOW_START=0 | |
- AUTH=0 | |
- BUILD=0 | |
- COMMIT=0 | |
- CONFIGS=0 | |
- CONTAINERS=1 | |
- DISTRIBUTION=0 | |
- EVENTS=1 | |
- EXEC=0 | |
- GRPC=0 | |
- IMAGES=0 | |
- INFO=0 | |
- LOG_LEVEL=warning | |
- NETWORKS=0 | |
- NODES=0 | |
- PING=1 | |
- PLUGINS=0 | |
- POST=0 | |
- SECRETS=0 | |
- SERVICES=0 | |
- SESSION=0 | |
- SOCKET_PATH=/var/run/docker.sock | |
- SWARM=0 | |
- SYSTEM=0 | |
- TASKS=0 | |
- VERSION=1 | |
- VOLUMES=0 | |
networks: | |
- web | |
expose: | |
- 2375 | |
swag: | |
container_name: swag | |
image: linuxserver/swag:latest | |
restart: unless-stopped | |
cpus: 0.25 | |
mem_limit: 512m | |
labels: | |
- "com.centurylinklabs.watchtower.monitor-only=true" | |
environment: | |
- PUID=$PUID | |
- PGID=$PGID | |
- UMASK_SET=022 | |
- TZ=$TZ | |
- DOCKER_MODS=linuxserver/mods:universal-docker|linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-auto-proxy|linuxserver/mods:swag-dashboard | |
- URL=$DOMAIN | |
- VALIDATION=dns | |
- SUBDOMAINS=wildcard | |
- DNSPLUGIN=cloudflare | |
- EMAIL=$EMAIL | |
- DOCKER_HOST=dockerproxy | |
depends_on: | |
- dockerproxy | |
volumes: | |
- ./swag/config:/config | |
networks: | |
- default | |
- web | |
ports: | |
- 8443:443 | |
authelia: | |
container_name: authelia | |
image: docker.io/authelia/authelia:latest | |
restart: unless-stopped | |
user: $PUID:$PGID | |
labels: | |
- swag=enable | |
environment: | |
- TZ=$TZ | |
networks: | |
web: | |
aliases: [] | |
expose: | |
- 9091 | |
volumes: | |
- ./authelia/config:/config | |
networks: | |
web: | |
external: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# redirs/compose.yaml | |
# redirect any none-docker app to swag auto-proxy | |
# | |
version: "3.8" | |
services: | |
pve: | |
container_name: pve | |
image: alpine/socat | |
restart: unless-stopped | |
labels: | |
- swag=enable | |
- swag_proto=https | |
- homepage.group=Instance | |
- homepage.name=Proxmox VE | |
- homepage.icon=proxmox.png | |
- homepage.href=https://pve.${DOMAIN}:${PORT} | |
- homepage.description=PVE Server | |
- homepage.ping=192.168.1.2 | |
- homepage.weight=10 | |
- homepage.widget.type=proxmox | |
- homepage.widget.url=https://192.168.1.2:8006 | |
- homepage.widget.username=$PVE_USERNAME | |
- homepage.widget.password=$PVE_PASSWORD | |
command: "TCP-LISTEN:443,fork,reuseaddr TCP:192.168.1.2:8006" | |
expose: | |
- 443 | |
networks: | |
- ingress_web | |
networks: | |
ingress_web: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment