service must be a mapping, not a NoneType.
diaverso opened this issue · 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.
same here
Install latest version of docker and docker compose.
Then run: docker compose up
instead of docker-compose up
.
Cheers