feat(docker): add Gitea service to Docker Compose configuration

This commit is contained in:
ngc2207 2024-12-29 16:19:48 +08:00
parent b618ba3784
commit 0c15dcf7de

View File

@ -1,6 +1,8 @@
volumes:
postgres:
driver: local
gitea:
driver: local
services:
postgres:
@ -21,3 +23,24 @@ services:
timeout: 5s
retries: 5
start_period: 5s
gitea:
image: docker.io/gitea/gitea:1.22.6
container_name: gitea
restart: always
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=postgres:5432
- GITEA__database__NAME=${POSTGRES_DB}
- GITEA__database__USER=${POSTGRES_USER}
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "22:22"
depends_on:
postgres:
condition: service_healthy