Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TeDomum
Documentation
Commits
4e914cde
Commit
4e914cde
authored
Apr 22, 2020
by
kaiyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch Nextcloud to Postgresql
parent
59673e7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
8 deletions
+33
-8
apps/data/docker-compose.yml
apps/data/docker-compose.yml
+7
-8
apps/data/postgresql.conf
apps/data/postgresql.conf
+26
-0
No files found.
apps/data/docker-compose.yml
View file @
4e914cde
...
...
@@ -2,16 +2,15 @@ version: '2.1'
services
:
db
:
image
:
mariadb
image
:
postgres:11-alpine
volumes
:
-
./db:/var/lib/
mysql
-
./wal:/wal
command
:
--log-bin=/wal/mariadb-bin
-
./
new
db:/var/lib/
postgresql/data
-
./
new
wal:/wal
-
./postgresql.conf:/var/lib/postgresql/data/postgresql.conf
environment
:
-
MYSQL_RANDOM_ROOT_PASSWORD=yes
-
MYSQL_DATABASE
-
MYSQL_USER
-
MYSQL_PASSWORD
-
POSTGRES_USER
-
POSTGRES_PASSWORD
-
POSTGRES_DB
redis
:
image
:
redis:latest
...
...
apps/data/postgresql.conf
0 → 100644
View file @
4e914cde
# Base settings
listen_addresses
=
'*'
max_connections
=
100
shared_buffers
=
128
MB
dynamic_shared_memory_type
=
posix
# Backups
wal_level
=
archive
max_wal_senders
=
2
archive_mode
=
on
archive_command
=
'test ! -f /wal/%f && cp %p /wal/%f'
# Defaults
log_timezone
=
'UTC'
datestyle
=
'iso, mdy'
timezone
=
'UTC'
lc_messages
=
'en_US.utf8'
lc_monetary
=
'en_US.utf8'
lc_numeric
=
'en_US.utf8'
lc_time
=
'en_US.utf8'
default_text_search_config
=
'pg_catalog.english'
# Extended options
shared_preload_libraries
=
'pg_stat_statements'
pg_stat_statements
.
track
=
all
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment