Gitea with Let's Encrypt in a Docker Compose

This commit is contained in:
Vladimir Mikhalev 2021-09-10 11:50:06 -04:00 committed by GitHub
parent 08755e3257
commit 05a6d0b1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,12 @@ services:
POSTGRES_USER: giteadbuser
# Database password (replace with yours)
POSTGRES_PASSWORD: etFneCEtAWRKkfeQmkvwLWE
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -h 127.0.0.1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
restart: unless-stopped
gitea:
@ -78,8 +84,10 @@ services:
- "traefik.http.middlewares.compresstraefik.compress=true"
restart: unless-stopped
depends_on:
- postgres
- traefik
postgres:
condition: service_healthy
traefik:
condition: service_healthy
traefik:
# Image tag (replace with yours)
@ -175,5 +183,7 @@ services:
POSTGRES_PASSWORD: etFneCEtAWRKkfeQmkvwLWE
restart: unless-stopped
depends_on:
- postgres
- gitea
postgres:
condition: service_healthy
gitea:
condition: service_healthy