Switched from mariadb to postgres for the db container
This commit is contained in:
@@ -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
3
db.env
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POSTGRES_PASSWORD=nextcloud1
|
||||||
|
POSTGRES_DB=nextcloud
|
||||||
|
POSTGRES_USER=nextcloud
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user