gitea config for serving
This commit is contained in:
@@ -3,14 +3,16 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
tailscale:
|
tailscale:
|
||||||
image: tailscale/tailscale:latest
|
image: tailscale/tailscale:latest
|
||||||
hostname: tailscale-gitea
|
hostname: gitea
|
||||||
environment:
|
environment:
|
||||||
- TS_AUTHKEY=tskey-auth-kNm64Dbcts11CNTRL-4eLQjm2pQYCLdy285gNaYCFDF1KTjP71
|
- TS_AUTHKEY=tskey-auth-kNm64Dbcts11CNTRL-4eLQjm2pQYCLdy285gNaYCFDF1KTjP71
|
||||||
# - TS_EXTRA_ARGS=--advertise-tags=tag:container
|
# - TS_EXTRA_ARGS=--advertise-tags=tag:container
|
||||||
|
- TS_SERVE_CONFIG=/config/ts_serve.json
|
||||||
- TS_STATE_DIR=/var/lib/tailscale
|
- TS_STATE_DIR=/var/lib/tailscale
|
||||||
- TS_USERSPACE=false
|
- TS_USERSPACE=false
|
||||||
volumes:
|
volumes:
|
||||||
- ./tailscale-nginx/state:/var/lib/tailscale
|
- ./tailscale-nginx/state:/var/lib/tailscale
|
||||||
|
- ./ts_serve.json:/config/ts_serve.json
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun:/dev/net/tun
|
- /dev/net/tun:/dev/net/tun
|
||||||
cap_add:
|
cap_add:
|
||||||
@@ -26,18 +28,15 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- gitea-data:/data
|
- gitea-data:/data
|
||||||
- tailscale-state:/var/lib/tailscale
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- GITEA__server__ROOT_URL=http://gitea/
|
- GITEA__server__ROOT_URL=https://gitea-story-basking.ts.net/
|
||||||
- GITEA__server__HTTP_PORT=3000
|
- GITEA__server__HTTP_PORT=3000
|
||||||
- GITEA__server__DOMAIN=gitea
|
- GITEA__server__DOMAIN=gitea
|
||||||
- GITEA__server__SSH_DOMAIN=gitea
|
- GITEA__server__SSH_DOMAIN=gitea
|
||||||
- TAILSCALE_AUTHKEY=
|
|
||||||
- TAILSCALE_HOSTNAME=gitea
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
gitea-data:
|
gitea-data:
|
||||||
|
|||||||
23
ts_serve.json
Normal file
23
ts_serve.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"TCP": {
|
||||||
|
"443": {
|
||||||
|
"HTTPS": true
|
||||||
|
},
|
||||||
|
"22": {
|
||||||
|
"TCPForward": "127.0.0.1:22"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Web": {
|
||||||
|
"gitea.story-basking.ts.net:443": {
|
||||||
|
"Handlers": {
|
||||||
|
"/": {
|
||||||
|
"Proxy": "http://127.0.0.1:3000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowFunnel": {
|
||||||
|
"gitea.story-basking.ts.net:443": true,
|
||||||
|
"gitea.story-basking.ts.net:22": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user