From 6c28572937d344c4aac5a56abf3cac06de397e7c Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Mon, 27 Oct 2025 19:45:39 +0100 Subject: [PATCH] feat: add devops compose file --- servers/production/devops/compose.yaml | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 servers/production/devops/compose.yaml diff --git a/servers/production/devops/compose.yaml b/servers/production/devops/compose.yaml new file mode 100644 index 0000000..bd09910 --- /dev/null +++ b/servers/production/devops/compose.yaml @@ -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: \ No newline at end of file