added new yamls

This commit is contained in:
2025-05-17 13:21:29 +02:00
parent 02f36dd01c
commit 3c6fdfdc96
2 changed files with 65 additions and 0 deletions

49
gitea.yaml Normal file
View File

@@ -0,0 +1,49 @@
version: "3"
networks:
frontend:
external: true
backend:
external: true
services:
server:
image: docker.gitea.com/gitea:latest
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=<change-me>
restart: always
networks:
frontend:
ipv4_address: 172.20.0.9
backend:
ipv4_address: 172.30.0.6
volumes:
- /docker/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
#ports:
#- "3000:3000"
#- "222:22"
depends_on:
- db
db:
image: docker.io/library/postgres:14
container_name: gitea-db
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=<change-me>
- POSTGRES_DB=gitea
networks:
backend:
ipv4_address: 172.30.0.5
volumes:
- /docker/gitea-postgres:/var/lib/postgresql/data

16
gitlab-runner.yaml Normal file
View File

@@ -0,0 +1,16 @@
version: "3.9"
services:
gitlab-runner:
image: gitlab/gitlab-runner:latest
container_name: gitlab-runner
restart: unless-stopped
network_mode: host
privileged: true
volumes:
- /docker/gitlab-runner-config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
- /mnt/stg/gitlabrunner-cache:/cache
labels:
- "com.portainer.accesscontrol.enable=true"
- "com.example.description=GitLab Runner container"