Commit 4e914cde authored by kaiyou's avatar kaiyou

Switch Nextcloud to Postgresql

parent 59673e7d
......@@ -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
- ./newdb:/var/lib/postgresql/data
- ./newwal:/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
......
# Base settings
listen_addresses = '*'
max_connections = 100
shared_buffers = 128MB
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment