From afff309f4783bd4faa1f31c135d847b8d7bd6105 Mon Sep 17 00:00:00 2001 From: John Potts Date: Fri, 14 Nov 2025 00:08:05 -0500 Subject: [PATCH 1/4] user and volume additions address permissions, depends_on should address a race condition --- docker-compose.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 3617d8f..b6d88f5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,6 +1,9 @@ services: # Kos application container app: + depends_on: + - db + user: app build: . ports: - 8000:8000 @@ -8,6 +11,7 @@ services: - "./:/app/" - /app/vendor # Use dependencies installed by composer during image building. # Remove the above line to use the local `vendor` directory. + - /app networks: - data-network From 9276f5ce4232f49f99fd1b886e2841f4cf008796 Mon Sep 17 00:00:00 2001 From: John Potts Date: Fri, 14 Nov 2025 01:11:11 -0500 Subject: [PATCH 2/4] changed the anonymous volume to just cover the logs directory --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b6d88f5..96f8064 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,7 +11,7 @@ services: - "./:/app/" - /app/vendor # Use dependencies installed by composer during image building. # Remove the above line to use the local `vendor` directory. - - /app + - /app/storage/logs networks: - data-network From 37b3b62f88a1f44dfe4281d7ccfc4e48650628e2 Mon Sep 17 00:00:00 2001 From: John Potts Date: Fri, 14 Nov 2025 01:20:28 -0500 Subject: [PATCH 3/4] fix for permissions on .env file --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 99999f0..b3046a9 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ Create a copy of this file with the example extension removed. cp .env.example .env ``` +On linux, we need to adjust the permissions on the .env file. It seems that the proper way to do this would be to find the UID/GID of the user running the PHP process inside the container, then change the ownership of the .env file on the host machine. For now, chmod 777 works. + +```shell +sudo chmod 777 .env +``` + #### 2. Build Docker image Files provided in the repository are pre-configured to build Kos from the application source code previously cloned in the last step. The Kos Docker image is built in steps. Once each step completes, it's stored in a cache for later to speed up following builds. From 44bc83aa65010d8aa8b01878ca240e630e1e75f4 Mon Sep 17 00:00:00 2001 From: John Potts Date: Fri, 14 Nov 2025 01:23:48 -0500 Subject: [PATCH 4/4] trailing whitespace --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 96f8064..f686485 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ services: # Kos application container app: - depends_on: + depends_on: - db user: app build: .