43 lines
1,019 B
YAML
43 lines
1,019 B
YAML
version: '3.7'
|
|
|
|
# https://hub.docker.com/r/gitea/gitea
|
|
# https://docs.gitea.io/en-us/install-with-docker/
|
|
# https://goauthentik.io/integrations/services/gitea/
|
|
|
|
# set GITEA_SETUP_LOCK = false for inital setup in .env
|
|
# create admin account: during setup at bottom of page
|
|
|
|
networks:
|
|
gitea:
|
|
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:1
|
|
container_name: gitea
|
|
restart: "${RESTART:-no}"
|
|
hostname: git
|
|
domainname: ${BASE_DOMAIN}
|
|
ports:
|
|
- '${GITEA_SSH_PORT}:22'
|
|
volumes:
|
|
- ${BASE_DIR:-/srv}/gitea/data:/data
|
|
- ./gitea/app.ini:/data/gitea/conf/app.ini
|
|
depends_on:
|
|
- pg-gitea
|
|
networks:
|
|
- proxy
|
|
- mail
|
|
- gitea
|
|
|
|
pg-gitea:
|
|
image: postgres:${POSTGRES_VERSION}-alpine
|
|
container_name: pg-gitea
|
|
restart: "${RESTART:-no}"
|
|
environment:
|
|
- POSTGRES_DB=gitea
|
|
- POSTGRES_USER=gitea
|
|
- POSTGRES_PASSWORD=${GITEA_PG_PWD:-gitea}
|
|
volumes:
|
|
- ${BASE_DIR:-/srv}/gitea/psql:/var/lib/postgresql/data
|
|
networks:
|
|
- gitea
|