move forgejo to nfs

This commit is contained in:
Pim Kunis 2023-07-05 23:17:44 +02:00
parent f4be83afc3
commit 63e10816de
2 changed files with 13 additions and 2 deletions

View file

@ -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 |

View file

@ -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: