doesn't work, as stated on the site ...
with traefik in my swarm I finally got it running with the compose file below.
... in case someone would have the same question
version: "3.6"
services:
postgres-sal:
image: grahamgilbert/postgres:9.4.5
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- engine.labels.worker_class==one
labels:
- "traefik.backend=postgres-sal"
- "traefik.docker.network=traefik_net"
- "traefik.port=5432"
volumes:
- type: bind
source: /srv/sal/data
target: /var/lib/postgresql/data
read_only: false
networks:
traefik_net:
aliases:
- db
environment:
DB_NAME: "sal"
DB_USER: "admin"
DB_PASS: "db_password"
sal:
depends_on:
- postgres-sal
image: macadmins/sal:latest
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- engine.labels.worker_class==one
labels:
- "traefik.backend=sal"
- "traefik.docker.network=traefik_net"
- "traefik.port=8000"
volumes:
- type: bind
source: /srv/sal/plugins
target: /home/docker/sal/plugins
read_only: false
networks:
- traefik_net
environment:
ADMIN_PASS: "admin_pass"
DB_NAME: "sal"
DB_USER: "admin"
DB_PASS: "db_password"
networks:
traefik_net:
external: true