feat: add devops compose file
This commit is contained in:
59
servers/production/devops/compose.yaml
Normal file
59
servers/production/devops/compose.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
gitea-server:
|
||||
image: docker.gitea.com/gitea:1.24.7
|
||||
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
|
||||
- GITEA__SERVICE__DISABLE_REGISTRATION=true
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- gitea-db
|
||||
|
||||
gitea-db:
|
||||
image: docker.io/library/postgres:14
|
||||
container_name: gitea-db
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
||||
gitea-runner-01:
|
||||
image: gitea/act_runner:latest-dind
|
||||
privileged: true
|
||||
container_name: gitea-runner-01
|
||||
environment:
|
||||
TINI_SUBREAPER: 1
|
||||
DOCKER_TLS_CERTDIR: /certs
|
||||
GITEA_INSTANCE_URL: "http://10.0.0.175:3000"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ""
|
||||
GITEA_RUNNER_NAME: "gitops-runner-01"
|
||||
volumes:
|
||||
- /home/lars/runner-dind:/data:rw
|
||||
- gitea-runner-certs:/certs
|
||||
|
||||
volumes:
|
||||
gitea-runner-certs:
|
||||
Reference in New Issue
Block a user