Skip to content

Commit

Permalink
fix for docker stack
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottminns committed Nov 14, 2024
1 parent d20e704 commit 03b4e91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
- "traefik.enable=true"
- "traefik.http.middlewares.guestbook-ratelimit.ratelimit.average=20"
- "traefik.http.routers.guestbook.rule=Host(`zenful.cloud`) && !Method(`POST`)"
- "traefik.http.services.guestbook.loadbalancer.server.port=8080"
- "traefik.http.routers.guestbook.entrypoints=websecure"
- "traefik.http.routers.guestbook.tls.certresolver=myresolver"
- "traefik.http.routers.guestbook.middlewares=guestbook-ratelimit"
Expand Down Expand Up @@ -53,10 +54,9 @@ services:
replicas: 3
restart: always
depends_on:
db:
condition: service_healthy
- db
db:
image: postgres
image: postgres:16
restart: always
user: postgres
volumes:
Expand All @@ -78,4 +78,4 @@ volumes:
letsencrypt:
secrets:
db-password:
file: ${DB_PASSWORD_PATH:-./db-password.txt}
external: true

0 comments on commit 03b4e91

Please sign in to comment.