Use volumes for Postgres and ClickHouse.

This commit is contained in:
2022-12-26 18:10:12 +01:00
parent 12de9c06be
commit 46b4044018
3 changed files with 11 additions and 130 deletions

View File

@@ -1,8 +1,11 @@
version: '3'
volumes:
postgres_data:
services:
postgres:
image: postgres:14
image: postgres:15
container_name: postgres
restart: always
ports:
@@ -10,5 +13,4 @@ services:
environment:
- POSTGRES_PASSWORD=postgres
volumes:
# - /Users/mb/docker/postgres/data:/var/lib/postgresql/data
- /home/marvin/docker/postgres/data:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data