gitea/docker-compose.yml

31 lines
681 B
YAML

version: '3'
services:
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD
- POSTGRES_DB=giteadb
volumes:
- ./data/postgres:/var/lib/postgresql/data/
- ./data/progs:/progs
restart: always
healthcheck:
test: pg_isready -U gitea -d giteadb
interval: 10s
timeout: 5s
retries: 5
gitea:
image: gitea/gitea:1
restart: always
volumes:
- ./data/gitea:/data
#- ./data/gitea/work:/data/gitea
#- ./data/gitea:/app
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 127.0.0.1:85:3000
- 22:2222