2019-11-05 20:58:51 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
2019-11-10 21:50:43 +01:00
|
|
|
# https://docs.gitea.io/en-us/install-with-docker/
|
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
gitea:
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:1
|
|
|
|
container_name: gitea
|
|
|
|
restart: unless-stopped
|
|
|
|
hostname: git.${BASE_DOMAIN}
|
|
|
|
ports:
|
|
|
|
- '222:22'
|
|
|
|
environment:
|
|
|
|
- DB_TYPE=postgres
|
|
|
|
- DB_HOST=pg-gitea:5432
|
|
|
|
- DB_NAME=gitea
|
2019-11-24 17:57:40 +01:00
|
|
|
- DB_USER=gitea
|
2019-11-10 21:50:43 +01:00
|
|
|
- DB_PASSWD=${GITEA_PG_PWD:-gitea}
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
|
|
|
- /srv/gitea/data:/data
|
|
|
|
- ./gitea/app.ini:/data/gitea/conf/app.ini
|
|
|
|
depends_on:
|
|
|
|
- pg-gitea
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- mail
|
|
|
|
- gitea
|
|
|
|
|
|
|
|
pg-gitea:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
container_name: pg-gitea
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=gitea
|
2019-11-24 17:57:40 +01:00
|
|
|
- POSTGRES_USER=gitea
|
2019-11-10 21:50:43 +01:00
|
|
|
- POSTGRES_PASSWORD=${GITEA_PG_PWD:-gitea}
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
|
|
|
- /srv/gitea/psql:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- gitea
|