Files
compose-projects-services/gitea/docker-compose.yml
Christoph Califice 7cf8000ec6
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 49s
update versions
2025-12-06 17:40:22 -03:00

56 lines
1.4 KiB
YAML

networks:
gitea:
external: false
name: gitea-net
services:
server:
image: docker.gitea.com/gitea
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gitea-db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: unless-stopped
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3005:3000"
- "222:22"
depends_on:
- db
db:
image: docker.io/library/postgres:14
container_name: gitea-db
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
networks:
- gitea
volumes:
- ./postgres:/var/lib/postgresql/data
runner:
image: docker.io/gitea/act_runner:nightly
container_name: gitea-runner
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "http://192.168.1.202:3005"
GITEA_RUNNER_REGISTRATION_TOKEN: "JjKRS66pgttENtYVVmhnT3TpfjVMfH7mIdEY19R3"
GITEA_RUNNER_NAME: "services-runner"
volumes:
- ./runner/config.yaml:/config.yaml
- ./runner/data:/data
- /var/run/docker.sock:/var/run/docker.sock