I’m a newbie with Docker but like it so far.
I’m adapting https://github.com/htpcBeginner/AtoMiC-ToolKit-Docker/blob/master/docker-compose-basic.yml for my own use but I’m getting a YAML parsing error that I don’t understand and would like some help.
The error I’m getting is:
clint@homeserver ~/docker $ docker-compose up -d
ERROR: yaml.parser.ParserError: while parsing a block collection
in "./docker-compose.yml", line 82, column 7
expected <block end>, but found '<scalar>'
in "./docker-compose.yml", line 84, column 32
My *.yml is below:
# /home/clint/docker/docker-compose.yml
---
version: "2"
services:
######### FRONTENDS ##########
#Portainer - WebUI for Containers
portainer:
image: portainer/portainer
hostname: portainer
container_name: portainer
restart: unless-stopped
command: -H unix:///var/run/docker.sock
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/docker/portainer/data:/data
- ~/docker/shared:/shared
environment:
- TZ="AUSTRALIA/DARWIN"
# Organizer - Unified HTPC/Home Server Web Interface
organizr:
container_name: organizr
hostname: organizr
restart: unless-stopped
image: lsiocommunity/organizr
volumes:
- ~/docker/organizr/config:/config
- ~/docker/shared:/shared
ports:
- "8899:80"
environment:
- PUID=1000
- PGID=1000
- TZ="AUSTRALIA/DARWIN"
######### DOCKER RELATED ##########
# Watchtower - Automatic Update of Containers/Apps
watchtower:
container_name: watchtower
hostname: watchtower
restart: unless-stopped
image: v2tec/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 0 4 * * *" --cleanup
#
# everything above works.
#
######### DOWNLOADERS ##########
# SABnzbd – Usenet (NZB) Downloader
sabnzbd:
container_name: "sabnzbd"
hostname: sabnzbd
restart: unless-stopped
image: "linuxserver/sabnzbd"
volumes:
- ~/docker/sabnzbd/config:/config
- /media/Downloads/0-sabnzbd/complete:/downloads
- /media/Downloads/0-sabnzbd/incomplete:/incomplete-downloads
- ~/Downloads:/watched
- ~/docker/shared:/shared
ports:
- "8080:8080"
environment:
- PUID=1000
- PGID=1000
- TZ="AUSTRALIA/DARWIN"
# Sonarr – TV Show Download and Management
sonarr:
image: "linuxserver/sonarr"
hostname: sonarr
container_name: sonarr
volumes:
- /home/clint/docker/sonarr:/config
- /media/Downloads/0-sabnzbd/complete:/downloads
- "/media/Media/TV Shows":/tv
- "/etc/localtime:/etc/localtime:ro"
- ~/docker/shared:/shared
ports:
- "8989:8989"
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ="AUSTRALIA/DARWIN"
...