generated from DAM/ts-TEMPLATE
init
This commit is contained in:
parent
bdc099464c
commit
9b9a33845d
@ -0,0 +1,54 @@
|
|||||||
|
services:
|
||||||
|
gitea-ts:
|
||||||
|
image: tailscale/tailscale:latest
|
||||||
|
hostname: gitea
|
||||||
|
container_name: gitea-ts
|
||||||
|
environment:
|
||||||
|
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
||||||
|
- TS_STATE_DIR=/var/lib/tailscale
|
||||||
|
- TS_SERVE_CONFIG=/config/serve.json
|
||||||
|
volumes:
|
||||||
|
- ./tailscale/tailscale-data:/var/lib/tailscale
|
||||||
|
- ./tailscale/config:/config
|
||||||
|
- /dev/net/tun:/dev/net/tun
|
||||||
|
cap_add:
|
||||||
|
- net_admin
|
||||||
|
- sys_module
|
||||||
|
restart: unless-stopped
|
||||||
|
gitea:
|
||||||
|
image: docker.gitea.com/gitea:1.23.5
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
- GITEA__database__DB_TYPE=postgres
|
||||||
|
- GITEA__database__HOST=localhost:5432
|
||||||
|
- GITEA__database__NAME=gitea
|
||||||
|
- GITEA__database__USER=gitea
|
||||||
|
- GITEA__database__PASSWD=gitea
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./gitea/data:/data
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
# ports:
|
||||||
|
# - "3000:3000"
|
||||||
|
# - "222:22"
|
||||||
|
depends_on:
|
||||||
|
- gitea-ts
|
||||||
|
- postgres
|
||||||
|
network_mode: service:gitea-ts
|
||||||
|
postgres:
|
||||||
|
image: docker.io/library/postgres:14
|
||||||
|
container_name: gitea-db
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD=gitea
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
volumes:
|
||||||
|
- ./postgres/data:/var/lib/postgresql/data
|
||||||
|
# ports:
|
||||||
|
# - "5432:5432"
|
||||||
|
network_mode: service:gitea-ts
|
||||||
|
depends_on:
|
||||||
|
- gitea-ts
|
Loading…
x
Reference in New Issue
Block a user