1
0
forked from MTSR/mapserver

psql setup

This commit is contained in:
NatureFreshMilk 2019-02-15 07:13:15 +01:00
parent 72bd7346c9
commit 309c88e8bb
4 changed files with 6 additions and 5 deletions

1
server/postgres_test/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data

View File

@ -9,6 +9,4 @@ services:
ports:
- "5432:5432"
volumes:
- "./data/postgres:/var/lib/postgresql/data"
- "./data/backup:/backup"
- "./data/restore:/restore"
- "./data:/var/lib/postgresql/data"

2
server/postgres_test/import.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cat minetest.postgres.sql | sudo docker exec -i postgres_test_postgres_1 psql -U postgres

View File

@ -3,6 +3,6 @@ backend = postgresql
creative_mode = true
enable_damage = true
player_backend = postgresql
pgsql_connection = host=localhost port=5432 user=postgres password=enter dbname=minetest
pgsql_player_connection = host=localhost port=5432 user=postgres password=enter dbname=minetest
pgsql_connection = host=localhost port=5432 user=postgres password=enter dbname=postgres
pgsql_player_connection = host=localhost port=5432 user=postgres password=enter dbname=postgres