Initial commit: 自建服务配置文件 (Caddy/Gitea/SilverBullet/sshwifty)
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
services:
|
||||
silverbullet:
|
||||
image: ghcr.io/silverbulletmd/silverbullet:latest
|
||||
container_name: silverbullet
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./space:/space
|
||||
environment:
|
||||
- SB_USER=lin:YL@han0824
|
||||
- SB_INDEX_PAGE=HOME
|
||||
|
||||
caddy:
|
||||
image: caddy-cloudflare:latest
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 1.1.1.1
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
environment:
|
||||
- CF_API_TOKEN=cfut_kQ3VQLZJD9opDWGh2PmdZwU3n8NqOUmwegTBafMG26a806eb
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./caddy_data:/data
|
||||
- ./caddy_config:/config
|
||||
- ./homepage:/srv/homepage
|
||||
|
||||
sshwifty:
|
||||
image: niruix/sshwifty:latest
|
||||
container_name: sshwifty
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- SSHWIFTY_CONFIG=/etc/sshwifty.conf.json
|
||||
volumes:
|
||||
- ./sshwifty.conf.json:/etc/sshwifty.conf.json
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__server__ROOT_URL=https://git.hyonglin.top/
|
||||
- GITEA__server__DOMAIN=git.hyonglin.top
|
||||
- GITEA__server__SSH_DOMAIN=git.hyonglin.top
|
||||
- GITEA__server__SSH_PORT=2222
|
||||
ports:
|
||||
- "2222:22"
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
Reference in New Issue
Block a user