Skip to content

Commit a4278fa

Browse files
committed
Fixed docker-compose
1 parent ff6cc68 commit a4278fa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TZ=UTC
2525
#GOKAPI_CHUNK_SIZE_MB=45
2626
#GOKAPI_MAX_FILESIZE=102400
2727
#GOKAPI_MAX_MEMORY_UPLOAD=50
28-
#GOKAPI_MAX_PARALLEL_UPLOADS=4
28+
#GOKAPI_MAX_PARALLEL_UPLOADS=3
2929
#TMPDIR=/app/data/tmp
3030

3131

docker-compose.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
version: '3.3'
12
services:
23
gokapi:
34
image: f0rc3/gokapi:latest
45
container_name: gokapi
56
ports:
67
- "127.0.0.1:53842:53842"
78
volumes:
8-
- gokapi-data:/app/data
9-
- gokapi-config:/app/config
9+
- ./gokapi-data:/app/data
10+
- ./gokapi-config:/app/config
1011
restart: always
12+
env_file:
13+
- "./.env"
1114

1215
volumes:
1316
gokapi-data:
1417
gokapi-config:
1518

16-
env_file:
17-
- path: "./.env"
18-
required: true

docs/setup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ Please make sure that ``/app/data`` and ``/app/config`` are mounted as volumes (
7979
Docker Compose
8080
""""""""""""""""
8181

82-
To launch Gokapi using Docker Compose, download the ``docker-compose.yaml`` file from the repository. You can adjust the environment variables under the ``environment:`` section according to the explanation above.
82+
To launch Gokapi using Docker Compose, download the ``docker-compose.yaml`` and ``.env.dist`` files from the repository. Rename ``.env.dist`` to ``.env`` and modify if required.
8383

8484
The folders ``gokapi-data`` and ``gokapi-config`` will be created automatically in the current directory, if they do not exist yet. You can change the names of these folders to your liking, but make sure to adjust the paths in the ``volumes:`` section accordingly.
8585

86-
By default, the container is set to always automatically (re)start when the system boots up. If you don't want this, you can remove the ``restart: always`` line or change it to ``restart: unless-stopped`` to have it only restart after a crash.
86+
By default, the container is set to always automatically (re)start when the system boots up. If you do not want this, you can remove the ``restart: always`` line or change it to ``restart: unless-stopped`` to have it only restart after a crash.
8787

8888
Then, start the container with the command ``docker compose up -d``
8989

0 commit comments

Comments
 (0)