From ccc05ee41bc27ceb53fd3bd310d1f0ac87a4ace5 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 27 Dec 2023 12:02:33 -0800 Subject: [PATCH] Add Docker compose file for Gitea --- gitea.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 gitea.yaml diff --git a/gitea.yaml b/gitea.yaml new file mode 100644 index 0000000..a696de9 --- /dev/null +++ b/gitea.yaml @@ -0,0 +1,47 @@ +version: "3" +networks: + gitea: + name: gitea-network + external: false + ipam: + config: + - subnet: + cloudflare-tunnel: + external: true +services: + gitea: + image: gitea/gitea:latest + container_name: gitea + environment: + - USER_UID= + - USER_GID= + - GITEA__database__DB_TYPE=mysql + - GITEA__database__HOST=db:3306 + - GITEA__database__NAME= + - GITEA__database__USER= + - GITEA__database__PASSWD= + restart: unless-stopped + networks: + gitea: + cloudflare-tunnel: + ipv4_address: + volumes: + - /gitea/data:/data + ports: + - "3000:3000" + - "222:22" + depends_on: + - db + db: + image: mysql:latest + container_name: gitea-db + restart: unless-stopped + environment: + - MYSQL_ROOT_PASSWORD= + - MYSQL_USER= + - MYSQL_PASSWORD= + - MYSQL_DATABASE= + networks: + - gitea + volumes: + - /gitea/mysql:/var/lib/mysql \ No newline at end of file