Last active
January 15, 2019 12:29
-
-
Save rarous/b9f14b35d15d91fb40b1601596d8000a to your computer and use it in GitHub Desktop.
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
version: '3.3' | |
services: | |
agent: | |
image: swarmpit/agent:2.0 | |
environment: | |
DOCKER_API_VERSION: '1.35' | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
networks: | |
- net | |
logging: | |
driver: awslogs | |
deploy: | |
mode: global | |
resources: | |
reservations: | |
cpus: '0.05' | |
memory: 32M | |
limits: | |
cpus: '0.1' | |
memory: 64M | |
app: | |
image: swarmpit/swarmpit:1.5 | |
environment: | |
SWARMPIT_DB: http://db:5984 | |
ports: | |
- 888:8080 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
networks: | |
- proxy | |
- net | |
logging: | |
driver: awslogs | |
deploy: | |
labels: | |
traefik.docker.network: proxy | |
traefik.enable: 'true' | |
traefik.frontend.rule: Host:swarmpit.prod.tmcloud.io | |
traefik.port: '8080' | |
placement: | |
constraints: | |
- node.role == manager | |
resources: | |
reservations: | |
cpus: '0.25' | |
memory: 512M | |
limits: | |
cpus: '0.5' | |
memory: 1024M | |
db: | |
image: klaemo/couchdb:2.0.0 | |
volumes: | |
- db-data2:/opt/couchdb/data | |
networks: | |
- net | |
logging: | |
driver: awslogs | |
deploy: | |
resources: | |
reservations: | |
cpus: '0.15' | |
memory: 256M | |
limits: | |
cpus: '0.3' | |
memory: 512M | |
networks: | |
net: | |
driver: overlay | |
proxy: | |
external: true | |
volumes: | |
db-data2: | |
driver: cloudstor:aws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment