From cca156b5f898127bac8ec4fbf4a1b921dae79d85 Mon Sep 17 00:00:00 2001 From: Tweeticoats <60335703+Tweeticoats@users.noreply.github.com> Date: Fri, 1 Oct 2021 15:56:32 +0930 Subject: [PATCH] Add container_name to docker compose (#1689) * Add container_name to docker compose * Add ports to docker compose * Provide instructions for DLNA --- docker/production/docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/production/docker-compose.yml b/docker/production/docker-compose.yml index cbb98b78a..837e3c95c 100644 --- a/docker/production/docker-compose.yml +++ b/docker/production/docker-compose.yml @@ -4,9 +4,13 @@ version: '3.4' services: stash: image: stashapp/stash:latest + container_name: stash restart: unless-stopped + ## the container's port must be the same with the STASH_PORT in the environment section ports: - "9999:9999" + ## If you intend to use stash's DLNA functionality uncomment the below network mode and comment out the above ports section + # network_mode: host logging: driver: "json-file" options: @@ -17,6 +21,8 @@ services: - STASH_GENERATED=/generated/ - STASH_METADATA=/metadata/ - STASH_CACHE=/cache/ + ## Adjust below to change default port (9999) + - STASH_PORT=9999 volumes: - /etc/localtime:/etc/localtime:ro ## Adjust below paths (the left part) to your liking.