Mount the Forgejo Volume for Docker, because macOS Rancher Desktop doesn't allow setting ownership for Local Filesystem

This commit is contained in:
Lup Yuen Lee 2024-12-21 11:58:09 +08:00
parent 3c5bdc66c5
commit 56c44a0fec

View file

@ -16,9 +16,15 @@ services:
networks: networks:
- forgejo - forgejo
volumes: volumes:
- ./forgejo:/data ## Mount the Forgejo Volume for Docker, because macOS Rancher Desktop doesn't allow setting ownership for Local Filesystem
- forgejo-data:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- '3002:3000' ## Web Server will be exposed at HTTP Port 3002 ## Web Server will be exposed at HTTP Port 3002
- '3002:3000'
- '222:22' - '222:22'
## Define the Forgejo Volume for Docker
volumes:
forgejo-data: