Run docker-compose up
from the project directory.
Volume mounting for the postgressql database as defined in docker-compose.yml does not work on Windows systems. Instead, follow these steps to use a modified compose file:
- Run
docker volume create --name postgres-data -d local
to create a named volume - Modify docker-compose.yml to declare the volume and change the db service's volumes accordingly (note the indentation):
db:
image: postgres:10.5-alpine
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data:
external: true
- Run
docker-compose up
.