More Docker Compose work

This commit is contained in:
Scott Idem
2023-02-22 20:24:11 -05:00
parent d0e6a6f921
commit 8d151e0836
5 changed files with 106 additions and 45 deletions

View File

@@ -1,23 +1,43 @@
Create links to the actual file directories
./srv/aether_api
./srv/aether_app
./srv/hosted_files
./srv/mariadb
./srv/nextcloud
./srv/oneskyit_site
./srv/static_files
Create links to the actual directories as needed
* ./srv/aether_api
* ./srv/aether_app
* ./srv/hosted_files
* ./srv/mariadb
* ./srv/nextcloud
* ./srv/oneskyit_site
* ./srv/static_files
## Create links examples
### Flask App
```bash
ln -s /srv/http/dev_app.oneskyit.com /srv/env/test_aether/srv/aether_app_ln
ln -s ~/OSIT_dev/aether_app ~/OSIT_dev/aether_container_env/srv/aether_app_ln
```
### FastAPI API
```bash
ln -s /srv/http/dev_fastapi.oneskyit.com /srv/env/test_aether/srv/aether_api_ln
ln -s ~/OSIT_dev/aether_api_fastapi ~/OSIT_dev/aether_container_env/srv/aether_api_ln
```
### Hosted tmp files
```bash
ln -s /mnt/data/speaker_ready/hosted_tmp /srv/env/test_aether/srv/hosted_tmp_ln
ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
```
### Hosted (hashed) files
```bash
ln -s /mnt/data/speaker_ready/hosted_files /srv/env/test_aether/srv/hosted_files_ln
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
```
### MariaDB
```bash
sudo rsync -vhr -progress /var/lib/mysql/ /srv/env/test_aether/srv/mariadb/
rsync -v /var/lib/mysql/ /srv/env/test_aether/srv/mariadb/
sudo chown -R scott:scott /srv/env/test_aether/srv/mariadb/
```