services-garbaye/podman-gitea/container-compose.yml

32 lines
644 B
YAML
Raw Normal View History

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
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: