mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-05-03 21:10:50 -05:00
Add docker compose example configuration (#267)
This commit is contained in:
@@ -76,6 +76,16 @@ If you do not want the binary to run as the root user in the container, you can
|
||||
|
||||
Please make sure that ``/app/data`` and ``/app/config`` are mounted as volumes (see example above), otherwise you will lose all your data after rebuilding or updating your container.
|
||||
|
||||
Docker Compose
|
||||
""""""""""""""""
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Then, start the container with the command ``docker compose up -d``
|
||||
|
||||
Native Deployment
|
||||
""""""""""""""""""
|
||||
|
||||
Reference in New Issue
Block a user