Switched from mariadb to postgres for the db container

This commit is contained in:
jon
2021-09-25 13:13:19 -05:00
parent c9354fc588
commit fc4c2fad29
3 changed files with 9 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ sysctl -w vm.max_map_count=262144
You can build and start all three containers (nextcloud, db and elasticsearch) with: You can build and start all three containers (nextcloud, db and elasticsearch) with:
$docker-compose up $ docker-compose up
## Basic Setup ## Basic Setup

3
db.env Normal file
View File

@@ -0,0 +1,3 @@
POSTGRES_PASSWORD=nextcloud1
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud

View File

@@ -1,16 +1,14 @@
version: '3' version: '3'
services: services:
nextcloud_db: nextcloud_db:
image: mariadb image: postgres:alpine
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always restart: always
volumes: volumes:
- ./db:/var/lib/mysql - ./db:/var/lib/postgresql/data
environment: environment:
- MYSQL_ROOT_PASSWORD=hELLO@123 - "POSTGRES_DB=nextcloud"
- MYSQL_PASSWORD=hELLO@123 - "POSTGRES_USER=nextcloud"
- MYSQL_DATABASE=nextcloud - "POSTGRES_PASSWORD=nextcloud1"
- MYSQL_USER=nextcloud
nextcloud: nextcloud:
image: nextcloud-ocr image: nextcloud-ocr