Refactor docker-compose.yml to expose port 5432 and add traefik.tcp.middlewares.test-inflightconn.inflightconn.burst label

This commit is contained in:
2024-05-29 16:17:25 +08:00
parent 4a02eba0e2
commit 93bbfbbcdd
+3 -2
View File
@@ -53,13 +53,14 @@ services:
interval: 30s
timeout: 10s
retries: 10
ports:
- "5432:5432"
expose:
- 5432
networks:
- net
labels:
- "traefik.enable=true"
- "traefik.tcp.middlewares.test-inflightconn.inflightconn.amount=10"
- "traefik.tcp.middlewares.test-inflightconn.inflightconn.burst=10"
- "traefik.tcp.routers.postgres.entrypoints=postgres-socket"
- "traefik.tcp.routers.postgres.rule=HostSNIRegexp(`^.+\\.furyhawk\\.lol$`)"
- "traefik.tcp.routers.postgres.middlewares=test-inflightconn"