Files
webstudio/apps/designer/docker-compose.yaml
T
Bogdan Chadkin 6004259fb1 Save db state after docker compose down (#435)
With previous docker setup I have a problem when switched between
projects had to setup migrations again and loose current session.

Docker compose volumes solve this problem and preserve current db state.
Can be destroyed with `docker compose down -v`.
2022-11-10 10:23:56 +03:00

19 lines
335 B
YAML

version: "3.1"
volumes:
db:
services:
db:
image: postgres
restart: always
environment:
# postgresql://user:pass@localhost:5432/webstudio
POSTGRES_PASSWORD: pass
POSTGRES_DB: webstudio
POSTGRES_USER: user
volumes:
- db:/var/lib/postgresql/data
ports:
- ${PGPORT:-5432}:5432