7 Commits

Author SHA1 Message Date
5e0f0e3fa7 seperatedcaddy 2026-04-03 18:15:47 +02:00
Tord-Vincent Heggland
1c2caf5c80 env-example 2026-03-14 16:30:05 +01:00
df4908bd44 up&down 2026-03-14 16:15:47 +01:00
3772834931 down 2026-03-14 15:50:12 +01:00
cf691eed92 up 2026-03-14 15:49:41 +01:00
663f1b759d caddydonesoon 2026-03-14 11:07:28 +01:00
1edbf9abeb workingoncaddy 2026-03-14 10:40:18 +01:00
5 changed files with 37 additions and 18 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
/data/
/git/
# -------------------------
# SSH private keys
# -------------------------

View File

@@ -18,28 +18,17 @@ services:
GITEA__repository__ENABLE_PUSH_CREATE_USER: "${GITEA_ENABLE_PUSH_CREATE_USER}"
GITEA__repository__ENABLE_PUSH_CREATE_ORG: "${GITEA_ENABLE_PUSH_CREATE_ORG}"
volumes:
- ../data:/data
- ../git:/git
- ./data:/data
- ./git:/git
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
# - "3000:3000"
- "2222:22"
networks:
- gitea_net
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
TUNNEL_TOKEN: "${CLOUDFLARE_TUNNEL_TOKEN}"
depends_on:
- gitea
networks:
- gitea_net
- caddy_net
networks:
gitea_net:
driver: bridge
caddy_net:
external: true

6
down.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
docker compose down
sudo ufw delete allow 80/tcp
sudo ufw delete allow 443/tcp

15
env.example Normal file
View File

@@ -0,0 +1,15 @@
USER_UID=1000
USER_GID=1000
GITEA_DOMAIN=git.example.com
GITEA_ROOT_URL=https://git.example.com/
GITEA_SSH_DOMAIN=git.example.com
GITEA_SSH_PORT=22
GITEA_REPOSITORY_ROOT=/git
GITEA_DEFAULT_PRIVATE=true
GITEA_DEFAULT_PUSH_CREATE_PRIVATE=true
GITEA_ENABLE_PUSH_CREATE_USER=true
GITEA_ENABLE_PUSH_CREATE_ORG=true
ACME_EMAIL=you@example.com

6
up.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
docker compose up -d