Utilizando o código informado não consigo criar o container.
version: '3.8'
networks:
database:
monit:
services:
database:
image: postgres
container_name: database-api-cursos
restart: unless-stopped
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 10s
retries: 10
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=h5UzM2kEnp8Q42
- APP_DB_USER=alura
- APP_DB_PASS=nJ6vsW37rCd1v88
- APP_DB_NAME=logsdb
ports:
- '5432:5432'
volumes:
- ./postgres/db:/docker-entrypoint-initdb.d/
- ./postgres/data:/var/lib/postgresql/data
networks:
- database
grafana-api-cursos:
user: "SUID:SGID"
image: grafana/grafana
container_name: grafana-api-cursos
volumes:
- ./grafana:/var/lib/grafana
restart: unless-stopped
ports:
- 3000:3000
networks:
- monit
Mensagem do erro.
database-api-cursos is up-to-date
Starting grafana-api-cursos ... error
ERROR: for grafana-api-cursos Cannot start service grafana-api-cursos: unable to find user SUID: no matching entries in passwd file
ERROR: for grafana-api-cursos Cannot start service grafana-api-cursos: unable to find user SUID: no matching entries in passwd file
ERROR: Encountered errors while bringing up the project.