优化开发环境pg配置

This commit is contained in:
Yu Sun
2022-07-12 22:36:30 +08:00
parent 68f86c94b7
commit 3148d70ed6
2 changed files with 808 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ services:
restart: unless-stopped
tty: true
# https://hub.docker.com/_/postgres
timescaledb:
container_name: tsdb
image: timescale/timescaledb-ha:pg14-latest
@@ -15,3 +16,7 @@ services:
restart: unless-stopped
environment:
POSTGRES_PASSWORD: big_dick
volumes:
- $PWD/config/postgresql.conf:/etc/postgresql/postgresql.conf
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'