-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2aeee0a
commit 3b8754c
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE USER akvo WITH CREATEDB PASSWORD 'password'; | ||
|
||
CREATE DATABASE "afs" | ||
WITH OWNER = akvo | ||
TEMPLATE = template0 | ||
ENCODING = 'UTF8' | ||
LC_COLLATE = 'en_US.UTF-8' | ||
LC_CTYPE = 'en_US.UTF-8'; | ||
|
||
\c afs | ||
|
||
CREATE EXTENSION IF NOT EXISTS ltree WITH SCHEMA public; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
#shellcheck disable=SC2016 | ||
|
||
set -eu | ||
|
||
docker-compose exec -T db bash -c 'pg_dump --user akvo --clean --create --format plain afs > /docker-entrypoint-initdb.d/001-init.sql; echo "Export done"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"Servers": { | ||
"1": { | ||
"Name": "db", | ||
"Group": "Servers", | ||
"Host": "db", | ||
"Port": 5432, | ||
"MaintenanceDB": "postgres", | ||
"Username": "postgres", | ||
"SSLMode": "allow", | ||
"SSLCompression": 0, | ||
"Timeout": 10, | ||
"UseSSHTunnel": 0, | ||
"TunnelPort": "22", | ||
"TunnelAuthentication": 0 | ||
} | ||
} | ||
} |