Gitea with Let's Encrypt in a Docker Compose
This commit is contained in:
parent
08755e3257
commit
05a6d0b1fa
@ -34,6 +34,12 @@ services:
|
|||||||
POSTGRES_USER: giteadbuser
|
POSTGRES_USER: giteadbuser
|
||||||
# Database password (replace with yours)
|
# Database password (replace with yours)
|
||||||
POSTGRES_PASSWORD: etFneCEtAWRKkfeQmkvwLWE
|
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
|
restart: unless-stopped
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
@ -78,8 +84,10 @@ services:
|
|||||||
- "traefik.http.middlewares.compresstraefik.compress=true"
|
- "traefik.http.middlewares.compresstraefik.compress=true"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
- traefik
|
condition: service_healthy
|
||||||
|
traefik:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
# Image tag (replace with yours)
|
# Image tag (replace with yours)
|
||||||
@ -175,5 +183,7 @@ services:
|
|||||||
POSTGRES_PASSWORD: etFneCEtAWRKkfeQmkvwLWE
|
POSTGRES_PASSWORD: etFneCEtAWRKkfeQmkvwLWE
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
- gitea
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user