diff --git a/docker-compose.yml b/docker-compose.yml index b8a965d..308ba2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.2' - services: web: build: ./src/urlshortener/ @@ -15,8 +13,11 @@ services: db: image: postgres volumes: - - ./data/db:/var/lib/postgresql/data + - postgresdb:/var/lib/postgresql/data environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres - - POSTGRES_PASSWORD=postgres \ No newline at end of file + - POSTGRES_PASSWORD=postgres + +volumes: + postgresdb: