Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e0f0e3fa7 | ||
|
|
1c2caf5c80 | ||
|
|
df4908bd44 | ||
|
|
3772834931 | ||
|
|
cf691eed92 | ||
|
|
663f1b759d | ||
|
|
1edbf9abeb |
@@ -1,3 +1,6 @@
|
||||
/data/
|
||||
/git/
|
||||
|
||||
# -------------------------
|
||||
# SSH private keys
|
||||
# -------------------------
|
||||
|
||||
+7
-18
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user