mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-24 08:56:00 +00:00
feat: swarm services
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
app:
|
||||
image: thelounge/thelounge:latest
|
||||
volumes:
|
||||
- thelounge-data:/var/opt/thelounge
|
||||
networks:
|
||||
- traefik-public
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.thelounge.thelounge-data == true
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=traefik-public
|
||||
- traefik.constraint-label=traefik-public
|
||||
- traefik.http.routers.thelounge-https.rule=Host(`${DOMAIN?Variable not set}`)
|
||||
- traefik.http.routers.thelounge-https.entrypoints=https
|
||||
- traefik.http.routers.thelounge-https.tls=true
|
||||
- traefik.http.routers.thelounge-https.tls.certresolver=le
|
||||
- traefik.http.services.thelounge.loadbalancer.server.port=9000
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
thelounge-data:
|
||||
Reference in New Issue
Block a user