Created
May 14, 2020 14:34
-
-
Save pamtrak06/2c67875682cc5806359619fdd5b977a4 to your computer and use it in GitHub Desktop.
This file contains 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
version: '3.3' | |
services: | |
app: | |
image: swarmpit/swarmpit:latest | |
environment: | |
- SWARMPIT_DB=http://db:5984 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
ports: | |
- 888:8080 | |
networks: | |
- net | |
- traefik-public | |
deploy: | |
resources: | |
limits: | |
cpus: '0.50' | |
memory: 1024M | |
reservations: | |
cpus: '0.25' | |
memory: 512M | |
placement: | |
constraints: | |
- node.role == manager | |
labels: | |
- traefik.frontend.rule=Host:${DOMAIN?Variable DOMAIN not set} | |
- traefik.enable=true | |
- traefik.port=8080 | |
- traefik.tags=traefik-public | |
- traefik.docker.network=traefik-public | |
- traefik.frontend.entryPoints=http,https | |
- traefik.frontend.redirect.entryPoint=https | |
db: | |
image: couchdb:2.3.0 | |
volumes: | |
- db-data:/opt/couchdb/data | |
networks: | |
- net | |
deploy: | |
resources: | |
limits: | |
cpus: '0.30' | |
memory: 512M | |
reservations: | |
cpus: '0.15' | |
memory: 256M | |
placement: | |
constraints: | |
- node.labels.swarmpit.db-data == true | |
agent: | |
image: swarmpit/agent:latest | |
environment: | |
- DOCKER_API_VERSION=1.35 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
networks: | |
- net | |
deploy: | |
mode: global | |
resources: | |
limits: | |
cpus: '0.10' | |
memory: 64M | |
reservations: | |
cpus: '0.05' | |
memory: 32M | |
networks: | |
net: | |
driver: overlay | |
attachable: true | |
traefik-public: | |
external: true | |
volumes: | |
db-data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment