You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/docs/File-and-Folder-Structure/How-to-set-up/Docker.md

50 lines
2.0 KiB

# Docker
!!! tip
If you're new to dockers and want an easy setup, we suggest taking a look at [DockSTARTer](https://dockstarter.com/){:target="_blank" rel="noopener noreferrer"}.
We've also created a short guide [HERE](/File-and-Folder-Structure/How-to-set-up/Dockstarter/) where we explain the settings for the most used applications.
The main goal of DockSTARTer is to make it quick and easy to get up and running with Docker.
You may choose to rely on DockSTARTer for various changes to your Docker system or use DockSTARTer as a stepping stone and learn to do more advanced configurations.
*DockSTARTer was actually my first step into the world of dockers.*
!!! note
I'm not going to explain how to get dockers installed and running, we will only explain which folder structure we recommend.
The paths mentioned below refer to internal paths (or `Container Path`) for the containers!
External paths (or `Host Path`) depend on where you mounted your share or your drives.
For example `/<path_to_data>/data`, or even `/data`.
{! include-markdown "../../../includes/file-and-folder-structure/folder-structure.md" !}
{! include-markdown "../../../includes/file-and-folder-structure/bad-path-suggestion.md" !}
{! include-markdown "../../../includes/file-and-folder-structure/breakdown-folder-structure-docker.md" !}
{! include-markdown "../../../includes/file-and-folder-structure/permissions.md" !}
## Docker-compose Example
!!! example ""
chore(editorconfig): Add more extensions (#1410) * Add more extensions to editorconfig Signed-off-by: Eric Nemchik <eric@nemchik.com> * feat(editorconfig): update indent size * Revert "feat(editorconfig): update indent size" This reverts commit 30e5918efe499ebf05559b19bdb140e75bd0d31b. * style: :lipstick: format json files Signed-off-by: Eric Nemchik <eric@nemchik.com> * style: :lipstick: format yaml files Signed-off-by: Eric Nemchik <eric@nemchik.com> * style: :lipstick: format md files Signed-off-by: Eric Nemchik <eric@nemchik.com> * style: :lipstick: format other files Signed-off-by: Eric Nemchik <eric@nemchik.com> * style: :lipstick: format md files Signed-off-by: Eric Nemchik <eric@nemchik.com> * fix: :bug: markdownlint fixes Signed-off-by: Eric Nemchik <eric@nemchik.com> * fix: :bug: markdownlint fixes Signed-off-by: Eric Nemchik <eric@nemchik.com> * fix: :bug: markdownlint fixes Signed-off-by: Eric Nemchik <eric@nemchik.com> * fix: :bug: editorconfig lint fixes Signed-off-by: Eric Nemchik <eric@nemchik.com> * feat: :rocket: deploy preview Signed-off-by: Eric Nemchik <eric@nemchik.com> * feat: :rocket: deploy preview Signed-off-by: Eric Nemchik <eric@nemchik.com> * feat: :rocket: deploy preview Signed-off-by: Eric Nemchik <eric@nemchik.com> * revert: :fire: remove deploy preview Signed-off-by: Eric Nemchik <eric@nemchik.com> * fix: :bug: fix incorrect prior merges Signed-off-by: Eric Nemchik <eric@nemchik.com> * style: :lipstick: change json to 2 spaces Signed-off-by: GitHub <noreply@github.com> * style: :lipstick: format json to 2 spaces Signed-off-by: GitHub <noreply@github.com> * update(formatting/py): run pep8 formatting --------- Signed-off-by: Eric Nemchik <eric@nemchik.com> Signed-off-by: GitHub <noreply@github.com> Co-authored-by: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Co-authored-by: FonduemangVI <michael.thomas@vualtlabs1226.com> Co-authored-by: zakary <zak@ary.dev>
7 months ago
This is a docker-compose example based on a default Ubuntu install.
The storage location used for the host is the same as in the container to make it easier to understand in this case `/data`.
The appdata (`/config`) will be stored on the host in the `/docker/appdata/{appname}`
??? example "docker-compose - [Click to show/hide]"
2 years ago
```yaml
--8<-- "includes/docker/docker-compose.yml"
```
{! include-markdown "../../../includes/file-and-folder-structure/docker-compose-commands.md" !}
--8<-- "includes/support.md"