added new yamls
This commit is contained in:
49
gitea.yaml
Normal file
49
gitea.yaml
Normal 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
16
gitlab-runner.yaml
Normal 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"
|
||||
Reference in New Issue
Block a user