Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
services:
# Kos application container
app:
depends_on:
- db
user: app
build: .
ports:
- 8000:8000
volumes:
- "./:/app/"
- /app/vendor # Use dependencies installed by composer during image building.
# Remove the above line to use the local `vendor` directory.
- /app/storage/logs
networks:
- data-network

Expand Down