Skip to content

Update traefik and swarmpit to latest versions #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 35 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
version: "3.3"
services:
traefik:
image: traefik:1.7.9
image: traefik:2.7
command:
- "--api"
- "--entrypoints=Name:http Address::80"
- "--defaultentrypoints=http"
- "--docker"
- "--docker.swarmMode"
- "--docker.domain=${DOMAIN_NAME}"
- "--docker.watch"
- "--entrypoints.http.address=:80"
- "--providers.docker"
- "--providers.docker.swarmmode"
- "--providers.docker.exposedbydefault=false"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- traefik-net
ports:
Expand All @@ -20,7 +18,8 @@ services:
labels:
traefik.enable: 'true'
traefik.docker.network: traefik-net
traefik.frontend.rule: "Host:traefik.${DOMAIN_NAME}"
traefik.http.routers.traefik-http-router.rule: Host(`traefik.${DOMAIN_NAME}`)
traefik.http.routers.traefik-http-router.entrypoints: http
traefik.port: 8080
placement:
constraints:
Expand All @@ -32,9 +31,10 @@ services:
condition: on-failure

swarmpit:
image: swarmpit/swarmpit:1.7
image: swarmpit/swarmpit:1.9
environment:
- SWARMPIT_DB=http://swarmpit_db:5984
- SWARMPIT_INFLUXDB=http://swarmpit_influxdb:8086
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
Expand All @@ -44,7 +44,8 @@ services:
labels:
traefik.enable: 'true'
traefik.docker.network: traefik-net
traefik.frontend.rule: "Host:swarmpit.${DOMAIN_NAME}"
traefik.http.routers.swarmpit-http-router.rule: Host(`swarmpit.${DOMAIN_NAME}`)
traefik.http.routers.swarmpit-http-router.entrypoints: http
traefik.port: 8080
resources:
limits:
Expand Down Expand Up @@ -75,8 +76,28 @@ services:
constraints:
- node.role == manager

swarmpit_influxdb:
image: influxdb:1.7
volumes:
- influx-data:/var/lib/influxdb
networks:
- net
logging:
driver: json-file
deploy:
resources:
reservations:
cpus: '0.3'
memory: 128M
limits:
cpus: '0.6'
memory: 512M
placement:
constraints:
- node.role == manager

swarmpit_agent:
image: swarmpit/agent:2.1
image: swarmpit/agent:2.2
environment:
- EVENT_ENDPOINT=http://swarmpit:8080/events
- HEALTH_CHECK_ENDPOINT=http://swarmpit:8080/version
Expand Down Expand Up @@ -117,3 +138,5 @@ networks:
volumes:
db-data:
driver: local
influx-data:
driver: local