Skip to content

Commit 038a270

Browse files
SattvikSattvik
authored andcommitted
fix: startDb.sh
1 parent 58ea405 commit 038a270

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

startDb.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
docker run --rm --name postgres -e 'POSTGRES_USER=root' -e 'POSTGRES_PASSWORD=root' -d -p 5432:5432 -v ~/Desktop/db/pstgres:/var/lib/postgresql/data postgres -c 'max_connections=10000'
1+
docker run --rm --name postgres \
2+
-e 'POSTGRES_USER=root' \
3+
-e 'POSTGRES_PASSWORD=root' \
4+
-d -p 5432:5432 \
5+
-v ~/Desktop/db/pstgres:/var/lib/postgresql/data \
6+
postgres \
7+
-c 'max_connections=1000' \
8+
-c 'autovacuum_naptime=1' \
9+
-c 'autovacuum_vacuum_threshold=10' \
10+
-c 'autovacuum_analyze_threshold=10'
211

312
sleep 30
413

0 commit comments

Comments
 (0)