Create a postgres docker-compose with a local mount volume
I have the follow code of my docker-compose.yml: version: '3' services: db: image: postgres:14.6 restart: always environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres volumes: - ./data:/var/lib/postgresql/data But when I do docker compose up, the console give me the next error: servicios-basesdatos-db-1 exited…