gitea/docker-compose.yml

38 lines
803 B
YAML
Raw Normal View History

2021-08-01 21:17:32 -05:00
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
2021-08-20 15:43:33 -05:00
healthcheck:
test: pg_isready -U gitea -d giteadb
interval: 10s
timeout: 5s
retries: 5
2021-08-01 21:17:32 -05:00
gitea:
2021-09-02 16:17:06 -05:00
image: gitea/gitea:1.15
2021-08-01 21:17:32 -05:00
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
2021-08-27 16:17:14 -05:00
depends_on:
- postgres
2021-09-10 16:56:24 -05:00
networks:
default:
driver_opts:
com.docker.network.bridge.name: br-gitea