From 56c44a0fec13f24918e1268467fd5f2a74da3f8f Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Sat, 21 Dec 2024 11:58:09 +0800 Subject: [PATCH] Mount the Forgejo Volume for Docker, because macOS Rancher Desktop doesn't allow setting ownership for Local Filesystem --- docker-compose.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1586980..caf1f6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,9 +16,15 @@ services: networks: - forgejo 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/localtime:/etc/localtime:ro 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' + +## Define the Forgejo Volume for Docker +volumes: + forgejo-data: