From ac135e98bdd2bb67ecefa0c1a7d5e8f06d3d0ca7 Mon Sep 17 00:00:00 2001 From: Johnny322 Date: Sun, 8 Feb 2026 11:24:59 +0100 Subject: [PATCH] Init commit --- .gitea/workflows/on-push.yml | 30 ++++++++++++++++++++++++++++++ .gitignore | 2 ++ docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 .gitea/workflows/on-push.yml create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitea/workflows/on-push.yml b/.gitea/workflows/on-push.yml new file mode 100644 index 0000000..a78d38c --- /dev/null +++ b/.gitea/workflows/on-push.yml @@ -0,0 +1,30 @@ +name: On Push Deploy + +on: + push: + +jobs: + deploy: + runs-on: docker + container: + volumes: + - /root/docker:/docker + steps: + - name: Something else else + run: | + ls + ls -la + - name: Something else + run: | + cd + ls -la + - name: Something else + run: | + cd /root/docker + ls -la + - name: Pull and run command on server + run: | + ls + cd /root/docker/gitea-setup + git pull + echo "TODO: add command" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c59458d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore environment variable files +.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..56e0a45 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +version: "3.8" + +services: + gitea: + image: gitea/gitea:latest + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - DB_TYPE=postgres + - DB_HOST=db:5432 + - DB_NAME=${POSTGRES_DB} + - DB_USER=${POSTGRES_USER} + - DB_PASSWD=${DB_PASSWD} + - APP_NAME=Gitea + - RUN_MODE=prod + restart: always + ports: + #- "3000:3000" # Web UI + - "222:22" # SSH for git clone via SSH + depends_on: + - db + volumes: + - ./data:/root/data/gitea/data + + db: + image: postgres:15 + container_name: gitea-db + restart: always + environment: + - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_DB=${POSTGRES_DB} + volumes: + - ./db:/root/data/gitea/postgresql/data