mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Add container_name to docker compose (#1689)
* Add container_name to docker compose * Add ports to docker compose * Provide instructions for DLNA
This commit is contained in:
@@ -4,9 +4,13 @@ version: '3.4'
|
|||||||
services:
|
services:
|
||||||
stash:
|
stash:
|
||||||
image: stashapp/stash:latest
|
image: stashapp/stash:latest
|
||||||
|
container_name: stash
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
## the container's port must be the same with the STASH_PORT in the environment section
|
||||||
ports:
|
ports:
|
||||||
- "9999:9999"
|
- "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:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -17,6 +21,8 @@ services:
|
|||||||
- STASH_GENERATED=/generated/
|
- STASH_GENERATED=/generated/
|
||||||
- STASH_METADATA=/metadata/
|
- STASH_METADATA=/metadata/
|
||||||
- STASH_CACHE=/cache/
|
- STASH_CACHE=/cache/
|
||||||
|
## Adjust below to change default port (9999)
|
||||||
|
- STASH_PORT=9999
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
## Adjust below paths (the left part) to your liking.
|
## Adjust below paths (the left part) to your liking.
|
||||||
|
|||||||
Reference in New Issue
Block a user