2019-11-05 20:58:51 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
2022-12-10 18:16:50 +01:00
|
|
|
# https://hub.docker.com/r/gitea/gitea
|
2019-11-10 21:50:43 +01:00
|
|
|
# https://docs.gitea.io/en-us/install-with-docker/
|
|
|
|
|
2022-12-10 18:16:50 +01:00
|
|
|
# set INSTALL_LOCK = false for inital setup in app.template.ini
|
|
|
|
# create admin account: during setup at bottom of page
|
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
gitea:
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:1
|
|
|
|
container_name: gitea
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-12-05 22:37:25 +01:00
|
|
|
hostname: git
|
|
|
|
domainname: ${BASE_DOMAIN}
|
2019-11-05 20:58:51 +01:00
|
|
|
ports:
|
2020-09-22 17:18:07 +02:00
|
|
|
- '${GITEA_SSH_PORT}:22'
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/gitea/data:/data
|
2019-11-05 20:58:51 +01:00
|
|
|
- ./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
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-11-05 20:58:51 +01:00
|
|
|
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:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/gitea/psql:/var/lib/postgresql/data
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
- gitea
|