networks: proxy-net: external: true teammapper-net: external: false services: teammapper: image: ghcr.io/b310-digital/teammapper:latest environment: MODE: PROD BINDING: "0.0.0.0" POSTGRES_DATABASE: teammapper-db POSTGRES_HOST: teammapper-postgres POSTGRES_PASSWORD: pass POSTGRES_PORT: 5432 POSTGRES_SSL: false POSTGRES_SSL_REJECT_UNAUTHORIZED: false POSTGRES_USER: team POSTGRES_QUERY_TIMEOUT: 100000 POSTGRES_STATEMENT_TIMEOUT: 100000 DELETE_AFTER_DAYS: 30 restart: unless-stopped networks: - proxy-net - teammapper-net ports: - 3003:3000 depends_on: - teammapper-postgres labels: - traefik.enable=true - traefik.docker.network=proxy-net - traefik.http.routers.teammapper.rule=Host(`think.slowte.ch`) - traefik.http.services.teammapper.loadbalancer.server.port=3000 - traefik.http.routers.teammapper.tls=true - traefik.http.routers.teammapper.tls.certresolver=letsencrypt - traefik.http.routers.teammapper.middlewares=auth - traefik.http.middlewares.auth.basicauth.users=${TEAMMAPPER_BASICAUTH} teammapper-postgres: image: postgres:12-alpine environment: PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_DB: teammapper-db POSTGRES_PASSWORD: pass POSTGRES_PORT: 5432 POSTGRES_USER: team volumes: - './containers_storage/teammapper-postgres:/var/lib/postgresql/data/pgdata' restart: unless-stopped networks: - teammapper-net