[GH-ISSUE #482] Error running compose file #407

Closed
opened 2026-02-26 06:32:44 +03:00 by kerem · 4 comments
Owner

Originally created by @whisperdancer on GitHub (Jun 30, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/482

RaspberryPi 3B+ running latest Rasp Pi OS

Followed your instructions to a t, then run docker-compose up -d and get this error:

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.app.environment contains an invalid type, it should be an object, or an array

Googled it and found nothing helpful.

Originally created by @whisperdancer on GitHub (Jun 30, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/482 RaspberryPi 3B+ running latest Rasp Pi OS Followed your instructions to a t, then run docker-compose up -d and get this error: ERROR: The Compose file './docker-compose.yml' is invalid because: services.app.environment contains an invalid type, it should be an object, or an array Googled it and found nothing helpful.
kerem 2026-02-26 06:32:44 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sqsmike commented on GitHub (Oct 28, 2020):

I came across to the same issue and it was because of a blank line at the end of the docker-compose.yml file.

<!-- gh-comment-id:718111683 --> @sqsmike commented on GitHub (Oct 28, 2020): I came across to the same issue and it was because of a blank line at the end of the docker-compose.yml file.
Author
Owner

@neb1426 commented on GitHub (Nov 17, 2020):

Running in to the exact same issue!
image

<!-- gh-comment-id:728784816 --> @neb1426 commented on GitHub (Nov 17, 2020): Running in to the exact same issue! ![image](https://user-images.githubusercontent.com/67613340/99368040-d08b4080-290e-11eb-9650-c98cb4d6d951.png)
Author
Owner

@neb1426 commented on GitHub (Nov 17, 2020):

No empty spaces at the end line either

<!-- gh-comment-id:728785038 --> @neb1426 commented on GitHub (Nov 17, 2020): No empty spaces at the end line either
Author
Owner

@sqsmike commented on GitHub (Nov 17, 2020):

Then an another issue maybe the database image, try to change your db line to this:

db:
image: 'yobasystems/alpine-mariadb'

also keep your mind on the single quotes around some strings ' ' try them also.

My working docker-compose.yml file
εικόνα

version: '3'
services:
proxy:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
db:
image: 'yobasystems/alpine-mariadb'
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql

<!-- gh-comment-id:728884563 --> @sqsmike commented on GitHub (Nov 17, 2020): Then an another issue maybe the database image, try to change your db line to this: db: image: 'yobasystems/alpine-mariadb' also keep your mind on the single quotes around some strings ' ' try them also. My working docker-compose.yml file ![εικόνα](https://user-images.githubusercontent.com/34960926/99388299-0b28b500-28de-11eb-98f8-c9a5486b5fb6.png) version: '3' services: proxy: image: 'jc21/nginx-proxy-manager:latest' ports: - '80:80' - '81:81' - '443:443' volumes: - ./config.json:/app/config/production.json - ./data:/data - ./letsencrypt:/etc/letsencrypt db: image: 'yobasystems/alpine-mariadb' environment: MYSQL_ROOT_PASSWORD: 'npm' MYSQL_DATABASE: 'npm' MYSQL_USER: 'npm' MYSQL_PASSWORD: 'npm' volumes: - ./data/mysql:/var/lib/mysql
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#407
No description provided.