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 path: /mnt/data/seafile/db
- name: mastodon_system - name: mastodon_system
path: /mnt/data/mastodon/system path: /mnt/data/mastodon/system
- name: forgejo
path: /mnt/data/forgejo
database_passwords: database_passwords:
nextcloud: !vault | nextcloud: !vault |

View file

@ -10,6 +10,13 @@ configs:
external: true external: true
name: "{{ config.config_name }}" name: "{{ config.config_name }}"
volumes:
forgejo:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/forgejo"
services: services:
server: server:
image: codeberg.org/forgejo/forgejo:1.18 image: codeberg.org/forgejo/forgejo:1.18
@ -21,9 +28,11 @@ services:
ports: ports:
- "{{ git_ssh_port }}:22" - "{{ git_ssh_port }}:22"
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/forgejo source: forgejo
target: /data target: /data
volume:
nocopy: true
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
deploy: deploy: