I keep losing my data when i restart my docker, here is my docker-compose.yml
postgres:
image: postgres
volumes:
- /data/myproject/postgres:/var/lib/postgresql/data
ports:
- '15432:5432'
environment:
POSTGRES_PASSWORD: mypassword
POSTGRES_USER: mypassword
Any help would be appreciated, thanks