gitea/compose.yaml
2024-05-10 11:36:32 +02:00

36 lines
711 B
YAML

---
services:
db:
image: docker.io/postgres:15
restart: unless-stopped
environment:
- POSTGRES_DB=db
- POSTGRES_USER=db
- POSTGRES_PASSWORD=db
volumes:
- db:/var/lib/postgresql/data/
gitea:
image: "$IMAGEAPP"
restart: unless-stopped
ports:
- "8080:3000"
- "2222:2222"
environment:
- POSTGRES_HOST=db
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db
- GITEA__database__USER=db
- GITEA__database__PASSWD=db
- GITEA__service__DISABLE_REGISTRATION=true
volumes:
- data:/var/lib/gitea/
- config:/etc/gitea/
depends_on:
- db
volumes:
config: {}
data: {}
db: {}