Finalizing Docker Compose files and configuration options
This commit is contained in:
50
README.md
50
README.md
@@ -2,11 +2,61 @@ This can be used to create a Docker server cluster for the Aether App using Flas
|
||||
|
||||
## Initialize
|
||||
### Part 1
|
||||
* Create directory and clone the Aether environment.
|
||||
```bash
|
||||
sudo mkdir /srv/env
|
||||
sudo chown -R scott:scott /srv/env/
|
||||
git clone https://scott_idem@bitbucket.org/oneskyit/one-sky-it-container-environment.git /srv/env/test_aether
|
||||
```
|
||||
|
||||
### Part 2
|
||||
* Create links to needed for the srv/ directories. See the README.md file under srv/ for details.
|
||||
* Copy Let's Encrypt certificates to the conf/certs/ directory. See the README.md file under conf/certs/ for details.
|
||||
* Copy MariaDB database files to the srv/mariadb/ directory using rsync. The original files may need to be copied from the normal Arch Linux location (/var/lib/mysql) first and then possibly reset the root password.
|
||||
```bash
|
||||
sudo rsync -vhr -progress /var/lib/mysql/ /srv/env/test_aether/srv/mariadb/
|
||||
sudo rsync -vhrz scott@linode.oneskyit.com:/srv/env/test_aether/srv/mariadb/ /srv/mariadb/
|
||||
```
|
||||
|
||||
### Part 3
|
||||
* Create the environment settings file and place it under the root of the Docker Compose directory. Copy the .env.default file as a template.
|
||||
```bash
|
||||
cp /srv/env/test_aether/.env /srv/env/test_aether/.env.bak
|
||||
cp /srv/env/test_aether/.env.default /srv/env/test_aether/.env
|
||||
```
|
||||
**/.env**
|
||||
```sh
|
||||
# One Sky IT's Aether Framework and System
|
||||
|
||||
OSIT_ENV=development
|
||||
|
||||
# Aether general shared config options
|
||||
## Aether API access and use
|
||||
## Aether DB access and use
|
||||
## Aether Redis access and use
|
||||
## Aether SMTP access and use
|
||||
|
||||
# Aether API specific config options (FastAPI)
|
||||
|
||||
# Aether app specific config (Flask with Svelte)
|
||||
|
||||
KEY="The Value"
|
||||
```
|
||||
|
||||
|
||||
## Manage Docker Compose Environment
|
||||
```bash
|
||||
docker restart ae_api_dev
|
||||
docker restart ae_app_dev
|
||||
docker restart ae_mariadb_dev
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## More Notes
|
||||
|
||||
|
||||
```bash
|
||||
ln -s /srv/http/dev_app.oneskyit.com /srv/env/test_aether/srv/aether_app_ln
|
||||
ln -s /srv/http/dev_fastapi.oneskyit.com /srv/env/test_aether/srv/aether_api_ln
|
||||
ln -s /mnt/data/speaker_ready/hosted_tmp /srv/env/test_aether/srv/hosted_tmp_ln
|
||||
|
||||
Reference in New Issue
Block a user