move forgejo to nfs
This commit is contained in:
parent
f4be83afc3
commit
63e10816de
2 changed files with 13 additions and 2 deletions
|
@ -24,6 +24,8 @@ nfs_shares:
|
|||
path: /mnt/data/seafile/db
|
||||
- name: mastodon_system
|
||||
path: /mnt/data/mastodon/system
|
||||
- name: forgejo
|
||||
path: /mnt/data/forgejo
|
||||
|
||||
database_passwords:
|
||||
nextcloud: !vault |
|
||||
|
|
|
@ -10,6 +10,13 @@ configs:
|
|||
external: true
|
||||
name: "{{ config.config_name }}"
|
||||
|
||||
volumes:
|
||||
forgejo:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/forgejo"
|
||||
|
||||
services:
|
||||
server:
|
||||
image: codeberg.org/forgejo/forgejo:1.18
|
||||
|
@ -21,9 +28,11 @@ services:
|
|||
ports:
|
||||
- "{{ git_ssh_port }}:22"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /mnt/data/forgejo
|
||||
- type: volume
|
||||
source: forgejo
|
||||
target: /data
|
||||
volume:
|
||||
nocopy: true
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
deploy:
|
||||
|
|
Reference in a new issue