initial NearBeach
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Using Different Databases
|
||||
#########################
|
||||
|
||||
We built NearBeach on the back of Django - which supports multiple databases.
|
||||
|
||||
NearBeach's currently supported databases;
|
||||
|
||||
* MariaDb
|
||||
* MySQL
|
||||
* PostgreSQL
|
||||
* Oracle
|
||||
|
||||
If you require to use a different database, please follow the instructions linked below.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
:caption: Use Different Databases
|
||||
|
||||
MariaDB </001-installation/different-databases/maria-db>
|
||||
MySQL </001-installation/different-databases/mysql>
|
||||
PostgreSQL </001-installation/different-databases/postgresql>
|
||||
Oracle </001-installation/different-databases/oracle>
|
||||
@@ -0,0 +1,74 @@
|
||||
Use MariaDb
|
||||
###########
|
||||
|
||||
You can use NearBeach with MariaDB. You can easily run MariaDB within the same docker-compose file, or alternatively you can run it separately (external).
|
||||
|
||||
Mariadb - External Database
|
||||
===========================
|
||||
|
||||
.. note::
|
||||
|
||||
We recommend using an external database like AWS RDS, etc. So you can scale and backup externally to the docker container.
|
||||
|
||||
Below is the sample code for using MariaDB/MySQL. Please note we do not have any of the docker database setup, as this is not required for externally run databases.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=mysql
|
||||
- DB_PORT=<<please fill>>
|
||||
...
|
||||
|
||||
You will need to fill out the following fields. These fields should match how you would log into that database.
|
||||
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=mysql
|
||||
- DB_PORT=<<please fill>>
|
||||
|
||||
|
||||
MariaDb - Docker Database
|
||||
=========================
|
||||
|
||||
.. note::
|
||||
|
||||
This will run the database within the docker environment.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:10.11
|
||||
container_name: nearbeach-db
|
||||
ports:
|
||||
- 3306:3306
|
||||
environment:
|
||||
- MARIADB_DATABASE=<<Please fill>>
|
||||
- MARIADB_USER=<<Please fill>>
|
||||
- MARIADB_PASSWORD=<<Please fill>>
|
||||
- MARIADB_ROOT_PASSWORD=<<Please fill>>
|
||||
volumes:
|
||||
- ./init:/docker-entrypoint-initdb.d
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
|
||||
The above code would be used in your docker-compose file.
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
Use MySQL
|
||||
#########
|
||||
|
||||
You can use NearBeach with MySQL. You can easily run MySQL within the same docker-compose file, or alternatively you can run it separately (external).
|
||||
|
||||
MySQL - External Database
|
||||
=========================
|
||||
|
||||
.. note::
|
||||
|
||||
We recommend using an external database like AWS RDS, etc. So you can scale and backup externally to the docker container.
|
||||
|
||||
Below is the sample code for using MySQL. Please note we do not have any of the docker database setup, as this is not required for externally run databases.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=mysql
|
||||
- DB_PORT=<<please fill>>
|
||||
...
|
||||
|
||||
You will need to fill out the following fields. These fields should match how you would log into that database.
|
||||
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=mysql
|
||||
- DB_PORT=<<please fill>>
|
||||
|
||||
MySQL - Docker Database
|
||||
=======================
|
||||
|
||||
.. note::
|
||||
|
||||
This will run the database within the docker environment.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: nearbeach-db
|
||||
ports:
|
||||
- 3306:3306
|
||||
environment:
|
||||
- MYSQL_DATABASE=<<Please fill>>
|
||||
- MYSQL_USER=<<Please fill>>
|
||||
- MYSQL_PASSWORD=<<Please fill>>
|
||||
- MYSQL_ROOT_PASSWORD=<<Please fill>>
|
||||
volumes:
|
||||
- ./init:/docker-entrypoint-initdb.d
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
|
||||
The above code would be used in your docker-compose file.
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
Use Oracle DB
|
||||
#############
|
||||
|
||||
You can use NearBeach with Oracle.
|
||||
|
||||
Oracle - External Database
|
||||
==========================
|
||||
|
||||
.. note::
|
||||
|
||||
We recommend using an external database like AWS RDS, etc. So you can scale and backup externally to the docker container. You will need to fill out the following fields. These fields should match how you would log into that database.
|
||||
|
||||
|
||||
Below is the sample code for using Oracle DB. Please note we do not have any of the docker database setup, as this is not required for externally run databases.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=oracle
|
||||
- DB_PORT=<<please fill>>
|
||||
...
|
||||
|
||||
You will need to fill out the following fields. These fields should match how you would log into that database.
|
||||
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=oracle
|
||||
- DB_PORT=<<please fill>>
|
||||
@@ -0,0 +1,75 @@
|
||||
Use PostgreSQL
|
||||
##############
|
||||
|
||||
You can use NearBeach with PostgreSQL. You can easily run PostgreSQL within the same docker-compose file, or alternatively you can run it separately (external).
|
||||
|
||||
PostgreSQL - External Database
|
||||
==============================
|
||||
|
||||
.. note::
|
||||
|
||||
We recommend using an external database like AWS RDS, etc. So you can scale and backup externally to the docker container. You will need to fill out the following fields. These fields should match how you would log into that database.
|
||||
|
||||
|
||||
Below is the sample code for using PostgreSQL. Please note we do not have any of the docker database setup, as this is not required for externally run databases.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=postgresql
|
||||
- DB_PORT=<<please fill>>
|
||||
...
|
||||
|
||||
You will need to fill out the following fields. These fields should match how you would log into that database.
|
||||
|
||||
- DB_DATABASE=<<Please fill>>
|
||||
- DB_USER=<<Please fill>>
|
||||
- DB_PASSWORD=<<Please fill>>
|
||||
- DB_HOST=<<please fill>>
|
||||
- DB_ENGINE=postgresql
|
||||
- DB_PORT=<<please fill>>
|
||||
|
||||
|
||||
PostgreSQL - Docker Database
|
||||
============================
|
||||
|
||||
.. note::
|
||||
|
||||
This will run the database within the docker environment.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:latest
|
||||
container_name: nearbeach-db
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
- POSTGRES_DB=<<Please fill>>
|
||||
- POSTGRES_USER=<<Please fill>>
|
||||
- POSTGRES_PASSWORD=<<Please fill>>
|
||||
volumes:
|
||||
- ./db-data/:/var/lib/postgresql/data/
|
||||
- ./init:/docker-entrypoint-initdb.d
|
||||
nearbeach:
|
||||
image: robotichead/nearbeach:latest
|
||||
container_name: nearbeach
|
||||
environment:
|
||||
...
|
||||
|
||||
The above code would be used in your docker-compose file.
|
||||
|
||||
Reference in New Issue
Block a user