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
|
|
|
|
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:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2022-08-29 19:31:29 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea-data:
|
|
|
|
gitea-pgsql:
|