I have the folowing docker-compose.yml and works in macos just fine but in windows i cant bind moun my folders
version: "3.8"
services:
db:
image: postgres
restart: always
hostname: database
volumes:
- 'postgresdb:/var/lib/postgresql/data'
environment:
POSTGRES_USER: postgres # The PostgreSQL user (useful to connect to the database)
POSTGRES_PASSWORD: 123456 # The PostgreSQL password (useful to connect to the database)
POSTGRES_DB: neo_dashboard # The PostgreSQL default database (automatically created at first launch)
ports:
- '5432:5432'
api:
build:
context: .
dockerfile: ./Dockerfile
command: npm run dev
image: neo_backend
ports:
- 3001:3001
container_name: neo-backend
volumes:
- ./src:/neo-api/src
- ./models:/neo-api/models
- ./migrations:/neo-api/migrations
working_dir: /neo-api
hostname: api
links:
- "db:database"
depends_on:
- db
migrations:
build:
context: .
dockerfile: ./Dockerfile
command: npm run migrate
image: neo_backend
container_name: neo-backend-migrations
volumes:
- ./src:/neo-api/src
- ./models:/neo-api/models
- ./migrations:/neo-api/migrations
working_dir: /neo-api
links:
- "db:database"
depends_on:
- api
volumes:
postgresdb: