74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
version: '3.8'
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
|
|
volumes:
|
|
gitea:
|
|
driver: local
|
|
postgres:
|
|
driver: local
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:14
|
|
container_name: gitea-postgres
|
|
environment:
|
|
- POSTGRES_USER=gitea
|
|
- POSTGRES_PASSWORD=giteapass
|
|
- POSTGRES_DB=gitea
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- gitea
|
|
restart: unless-stopped
|
|
|
|
gitea:
|
|
image: gitea/gitea:latest
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__database__DB_TYPE=postgres
|
|
- GITEA__database__HOST=postgres:5432
|
|
- GITEA__database__NAME=gitea
|
|
- GITEA__database__USER=gitea
|
|
- GITEA__database__PASSWD=giteapass
|
|
- GITEA__server__DOMAIN=git.home.lab
|
|
- GITEA__server__SSH_DOMAIN=git.home.lab
|
|
- GITEA__server__ROOT_URL=http://git.home.lab:3000
|
|
- GITEA__server__SSH_PORT=2222
|
|
- GITEA__service__DISABLE_REGISTRATION=true
|
|
- GITEA__service__REQUIRE_SIGNIN_VIEW=true
|
|
- GITEA__actions__ENABLED=true
|
|
- GITEA__actions__DEFAULT_ACTIONS_URL=https://github.com
|
|
volumes:
|
|
- gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3000:3000"
|
|
- "2222:22"
|
|
networks:
|
|
- gitea
|
|
depends_on:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
# Gitea Actions Runner
|
|
runner:
|
|
image: gitea/act_runner:latest
|
|
container_name: gitea-runner
|
|
environment:
|
|
- GITEA_INSTANCE_URL=http://gitea:3000
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
|
|
- GITEA_RUNNER_NAME=docker-runner
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./runner-data:/data
|
|
networks:
|
|
- gitea
|
|
depends_on:
|
|
- gitea
|
|
restart: unless-stopped |