Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: "3"
services:
http_default_server:
image: twistly/default_server
networks:
- internal
deploy:
mode: global
labels:
caddy.address: 0.0.0.0:80
caddy.tls: 'off'
caddy.targetport: 2015
https_default_server:
image: twistly/default_server
networks:
- internal
deploy:
mode: global
labels:
caddy.address: 0.0.0.0:443
caddy.tls: 'self_signed'
caddy.targetport: 2015
ingress_proxy:
image: lucaslorentz/caddy-docker-proxy
command: -log stdout -port 443
ports:
- 80:80
- 443:443
networks:
- internal
- proxy
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
deploy:
mode: global
placement:
constraints:
- node.role == manager
swarmpit:
image: swarmpit/swarmpit:latest
environment:
SWARMPIT_DB: http://swarmpit_db:5984
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- internal
deploy:
resources:
limits:
cpus: '0.50'
memory: 1024M
reservations:
cpus: '0.25'
memory: 512M
placement:
constraints:
- node.role == manager
labels:
caddy.address: 'http://dashboard.hosting.wvvw.me, https://dashboard.hosting.wvvw.me'
caddy.tls: 'xo@wvvw.me'
caddy.targetport: 8080
swarmpit_db:
image: klaemo/couchdb:2.0.0
volumes:
- swarmpit-db-data:/opt/couchdb/data
networks:
- internal
deploy:
resources:
limits:
cpus: '0.30'
memory: 512M
reservations:
cpus: '0.15'
memory: 256M
event-collector:
image: swarmpit/event-collector:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- internal
deploy:
mode: global
resources:
limits:
cpus: '0.10'
memory: 64M
reservations:
cpus: '0.05'
memory: 32M
volumes:
swarmpit-db-data:
networks:
internal:
driver: overlay
proxy:
driver: overlay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.