Uptime-Kuma-Web-API icon indicating copy to clipboard operation
Uptime-Kuma-Web-API copied to clipboard

service must be a mapping, not a NoneType.

Open diaverso opened this issue 1 year ago • 2 comments

I have the interface of casaOS

I have created the file docker-compose.yml with these parameters

`version: "3.9" services: kuma: container_name: uptime-kuma image: louislam/uptime-kuma:latest ports: - "3001:3001" restart: always volumes: - uptime-kuma:/app/data

api: container_name: backend image: medaziz11/uptimekuma_restapi volumes: - ./db:/db:rwx restart: always environment: - KUMA_SERVER=http://kuma:3001 - KUMA_USERNAME=test - KUMA_PASSWORD=123test. - ADMIN_PASSWORD=admin depends_on: - kuma ports: - "8000:8000"

volumes: uptime-kuma:`

But when I put the command " sudo docker compose up"

I get this error

ERROR: In file './docker-compose.yml', service must be a mapping, not a NoneType.

diaverso avatar Jun 07 '23 11:06 diaverso

same here

ojsef39 avatar Jun 19 '23 10:06 ojsef39

Install latest version of docker and docker compose.

Then run: docker compose up instead of docker-compose up.

Cheers

markosole avatar Jul 03 '23 16:07 markosole