diff --git a/git/compose.yml b/git/compose.yml new file mode 100644 index 0000000..843e4dc --- /dev/null +++ b/git/compose.yml @@ -0,0 +1,53 @@ +networks: + gitea: + external: false + +services: + server: + image: gitea/gitea:latest + container_name: gitea + environment: + - USER_UID=1001 + - USER_GID=1001 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=***REMOVED*** + restart: always + networks: + - gitea + volumes: + - /data/git/gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + - /home/git/.ssh:/data/git/.ssh + ports: + - "3010:3000" + - "222:22" + depends_on: + - db + + db: + image: postgres:14 + restart: always + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=***REMOVED*** + - POSTGRES_DB=gitea + networks: + - gitea + volumes: + - /data/git/postgres:/var/lib/postgresql/data + + runner: + image: gitea/act_runner + restart: always + depends_on: + - server + volumes: + - /data/git/act_runner:/data + - /var/run/docker.sock:/var/run/docker.sock + environment: + - GITEA_INSTANCE_URL=https://git.plobos.xyz + - GITEA_RUNNER_REGISTRATION_TOKEN=hc0N7KMCNRvTUBYaw5dLZF7BSa1mUuinpBvHu4TG