mirror of
https://github.com/Kugelschieber/docker.git
synced 2026-01-18 14:50:26 +00:00
Use volumes for Postgres and ClickHouse.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user