first running stack
This commit is contained in:
parent
5060247762
commit
fc437d0825
@ -1,19 +1,13 @@
|
|||||||
networks:
|
networks:
|
||||||
gitea:
|
caddy:
|
||||||
external: false
|
|
||||||
caddy_caddy:
|
|
||||||
external: true
|
external: true
|
||||||
volumes:
|
volumes:
|
||||||
git-nfs:
|
gitea-nfs:
|
||||||
driver_opts:
|
external: true
|
||||||
type: "nfs"
|
|
||||||
o: "addr=10.0.20.252,rw,noatime,nolock,soft,rsize=131072,wsize=131072,tcp,timeo=14"
|
|
||||||
device: ":/mnt/pile/drive/git"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
image: octopus/gitea:1.21.10
|
image: octopus/gitea:1.21.10
|
||||||
container_name: gitea
|
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
@ -22,16 +16,11 @@ services:
|
|||||||
- GITEA__database__NAME=DOCKER-SECRET->gitea.db.name
|
- GITEA__database__NAME=DOCKER-SECRET->gitea.db.name
|
||||||
- GITEA__database__USER=DOCKER-SECRET->gitea.db.user
|
- GITEA__database__USER=DOCKER-SECRET->gitea.db.user
|
||||||
- GITEA__database__PASSWD=DOCKER-SECRET->gitea.db.passwd
|
- GITEA__database__PASSWD=DOCKER-SECRET->gitea.db.passwd
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- caddy
|
||||||
- caddy_caddy
|
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- gitea-nfs:/data
|
||||||
source: git-nfs
|
|
||||||
target: /data
|
|
||||||
volume:
|
|
||||||
subpath: gitea
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
secrets:
|
secrets:
|
||||||
@ -40,7 +29,6 @@ services:
|
|||||||
- gitea.db.name
|
- gitea.db.name
|
||||||
- gitea.db.host
|
- gitea.db.host
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
|
||||||
- "222:22"
|
- "222:22"
|
||||||
secrets:
|
secrets:
|
||||||
gitea.db.user:
|
gitea.db.user:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user