align docker compose with run

This commit is contained in:
jflattery 2022-05-02 00:09:47 +00:00
parent 4a8bcc90ea
commit 9e93a3c7e6

View File

@ -71,6 +71,7 @@ docker run -d \
-e AUDIOBOOKSHELF_GID=100 \ -e AUDIOBOOKSHELF_GID=100 \
-p 13378:80 \ -p 13378:80 \
-v </path/to/audiobooks>:/audiobooks \ -v </path/to/audiobooks>:/audiobooks \
-v </path/to/your/podcasts>:/podcasts \
-v </path/to/config>:/config \ -v </path/to/config>:/config \
-v </path/to/metadata>:/metadata \ -v </path/to/metadata>:/metadata \
--name audiobookshelf \ --name audiobookshelf \
@ -87,17 +88,21 @@ docker start audiobookshelf
### Running with Docker Compose ### Running with Docker Compose
```bash ```yaml
### docker-compose.yml ### ### docker-compose.yml ###
services: services:
audiobookshelf: audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf image: ghcr.io/advplyr/audiobookshelf
environment:
- AUDIOBOOKSHELF_UID=99
- AUDIOBOOKSHELF_GID=100
ports: ports:
- 13378:80 - 13378:80
volumes: volumes:
- <path/to/your/audiobooks>:/audiobooks - </path/to/your/audiobooks>:/audiobooks
- <path/to/metadata>:/metadata - </path/to/your/podcasts>:/podcasts
- <path/to/config>:/config - </path/to/config>:/config
- </path/to/metadata>:/metadata
``` ```
### Docker Compose Update ### Docker Compose Update