2022-05-26 19:00:27 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: "${gitea_image}:${gitea_version}"
|
|
|
|
container_name: gitea
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
volumes:
|
|
|
|
- gitea-data:/data:Z
|
|
|
|
ports:
|
|
|
|
- ${weblisten_if}:${weblisten_port}:3000
|
|
|
|
- ${sshlisten_if}:${sshlisten_port}:22
|
2023-08-10 20:55:02 +00:00
|
|
|
healthcheck:
|
2023-08-10 21:11:56 +00:00
|
|
|
test: ["CMD", "curl", "-fSs", "http://localhost:3000/api/healthz"]
|
2023-08-10 20:55:02 +00:00
|
|
|
interval: 60s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
2023-08-10 21:11:56 +00:00
|
|
|
start_period: 5s
|
2022-05-26 19:00:27 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: "${postgres_image}:${postgres_version}"
|
|
|
|
container_name: gitea-db
|
|
|
|
volumes:
|
|
|
|
- gitea-pgsql:/var/lib/postgresql/data:Z
|
2023-08-10 19:44:10 +00:00
|
|
|
healthcheck:
|
2023-08-10 21:34:49 +00:00
|
|
|
test: ["CMD-SHELL", "pg_isready -U gitea"]
|
2023-08-10 19:44:10 +00:00
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2022-08-29 19:31:29 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea-data:
|
|
|
|
gitea-pgsql:
|