Compare commits
7 Commits
master
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d265064cf6 | ||
|
|
56da44234a | ||
|
|
4d50418238 | ||
|
|
b87fd7f200 | ||
|
|
f171d314f2 | ||
|
|
2ac5a39706 | ||
|
|
9fe60c418d |
@@ -21,6 +21,7 @@ OSIT_WEB_MAX_BODY_SIZE=5120M
|
||||
DOCKER_AE_SERVER_EXTRA_HOST=example.oneskyit.com:192.168.32.20
|
||||
DOCKER_AE_APP_SERVER_EXTRA_HOST=example-app.oneskyit.com:192.168.32.20
|
||||
DOCKER_AE_API_SERVER_EXTRA_HOST=example-api.oneskyit.com:192.168.32.20
|
||||
DOCKER_AE_API_BAK_SERVER_EXTRA_HOST=example-bak-api.oneskyit.com:192.168.32.20
|
||||
DOCKER_AE_API_V5_SERVER_EXTRA_HOST=example-api-v5.oneskyit.com:192.168.32.20
|
||||
DOCKER_AE_APP_EXTRA_HOST=example-api.oneskyit.com:192.168.32.20 # This should be a static(ish) IP. It may need to be externally routable? prod-api.oneskyit.com:104.237.143.4
|
||||
DOCKER_AE_APP_EXTRA_HOST_V5=example-api-v5.oneskyit.com:192.168.32.20
|
||||
|
||||
11
README.md
11
README.md
@@ -8,6 +8,12 @@ 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
|
||||
```
|
||||
* Using rsync is also an option. The symlinked directories will need to be copied separately.
|
||||
```bash
|
||||
sudo rsync -vhr -progress /srv/env/prod_aether/ /srv/env/bak_aether
|
||||
rsync -av /srv/http/aether_app/ /srv/apps/prod_aether_app_flask
|
||||
rsync -av /srv/http/aether_api/ /srv/apps/prod_aether_api_fastapi
|
||||
```
|
||||
|
||||
### Part 2
|
||||
* Create links to needed for the srv/ directories. See the README.md file under srv/ for details.
|
||||
@@ -115,6 +121,11 @@ sdfasdfasd git clone https://scott_idem@bitbucket.org/oneskyit/one-sky-it-contai
|
||||
|
||||
|
||||
```bash
|
||||
sudo ln -s /srv/apps/prod_aether_app_flask /srv/env/bak_aether/srv/aether_app_ln
|
||||
sudo ln -s /srv/apps/prod_aether_api_fastapi /srv/env/bak_aether/srv/aether_api_ln
|
||||
sudo ln -s /mnt/data/speaker_ready/hosted_tmp /srv/env/bak_aether/srv/hosted_tmp_ln
|
||||
sudo ln -s /mnt/data/speaker_ready/hosted_files /srv/env/bak_aether/srv/hosted_files_ln
|
||||
|
||||
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
|
||||
|
||||
@@ -90,8 +90,8 @@ server {
|
||||
|
||||
include /etc/nginx/options-ssl-nginx.conf;
|
||||
|
||||
ssl_certificate /etc/certs/fullchain.pem;
|
||||
ssl_certificate_key /etc/certs/privkey.pem;
|
||||
ssl_certificate /etc/certs/fullchain_wild.pem;
|
||||
ssl_certificate_key /etc/certs/privkey_wild.pem;
|
||||
ssl_dhparam /etc/certs/ssl-dhparams.pem;
|
||||
|
||||
# include brotli.conf;
|
||||
|
||||
@@ -9,6 +9,13 @@ server {
|
||||
${DOCKER_AE_APP_SERVER_NAME}
|
||||
flask_gunicorn.localhost demo.localhost dev.localhost
|
||||
|
||||
bak-app.oneskyit.com
|
||||
bak-connect.oneskyit.com *.bak-connect.oneskyit.com
|
||||
bak-demo.oneskyit.com *.bak-demo.oneskyit.com
|
||||
|
||||
bak-businessgroup.oneskyit.com *.bak-businessgroup.oneskyit.com
|
||||
bak-ishlt.oneskyit.com *.bak-ishlt.oneskyit.com
|
||||
|
||||
dev-app.oneskyit.com
|
||||
dev-connect.oneskyit.com *.dev-connect.oneskyit.com
|
||||
dev-demo.oneskyit.com *.dev-demo.oneskyit.com
|
||||
@@ -79,6 +86,13 @@ server {
|
||||
${DOCKER_AE_APP_SERVER_NAME}
|
||||
flask_gunicorn.localhost demo.localhost dev.localhost
|
||||
|
||||
bak-app.oneskyit.com
|
||||
bak-connect.oneskyit.com *.bak-connect.oneskyit.com
|
||||
bak-demo.oneskyit.com *.bak-demo.oneskyit.com
|
||||
|
||||
bak-businessgroup.oneskyit.com *.bak-businessgroup.oneskyit.com
|
||||
bak-ishlt.oneskyit.com *.bak-ishlt.oneskyit.com
|
||||
|
||||
dev-app.oneskyit.com
|
||||
dev-connect.oneskyit.com *.dev-connect.oneskyit.com
|
||||
dev-demo.oneskyit.com *.dev-demo.oneskyit.com
|
||||
|
||||
@@ -58,6 +58,8 @@ services:
|
||||
# - ./conf/nginx/site-enabled_aether_api_v5_fastapi_gunicorn.conf:/etc/nginx/templates/site-enabled_aether_api_v5_fastapi_gunicorn.conf.template
|
||||
- ./conf/nginx/site-enabled_aether_flask_gunicorn.conf:/etc/nginx/templates/site-enabled_aether_flask_gunicorn.conf.template
|
||||
|
||||
- ./conf/certs/oneskyit_wild_fullchain.pem:/etc/certs/fullchain_wild.pem
|
||||
- ./conf/certs/oneskyit_wild_privkey.pem:/etc/certs/privkey_wild.pem
|
||||
- ./conf/certs/oneskyit.com_fullchain.pem:/etc/certs/fullchain.pem
|
||||
- ./conf/certs/oneskyit.com_privkey.pem:/etc/certs/privkey.pem
|
||||
- ./conf/certs/ssl-dhparams.pem:/etc/certs/ssl-dhparams.pem
|
||||
@@ -119,42 +121,25 @@ services:
|
||||
# # - ./customcert.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
# # - ./customcertkey.key:/etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
# php5:
|
||||
# php7:
|
||||
# restart: always
|
||||
# container_name: ae_php5_dev
|
||||
# # image: php:5-fpm
|
||||
# container_name: ${CONTAINER_PHP7}
|
||||
# # image: php:fpm
|
||||
# build:
|
||||
# context: ./
|
||||
# dockerfile: php5.Dockerfile
|
||||
# dockerfile: php7.Dockerfile
|
||||
# volumes:
|
||||
# - ./srv/html_php:/srv/html_php
|
||||
#
|
||||
# - ./conf/php/custom_php5.ini:/usr/local/etc/php/conf.d/custom_php5.ini
|
||||
#
|
||||
# - ./logs:/logs
|
||||
# ports:
|
||||
# - "9005:9000"
|
||||
# - ./srv/oneskyit_site:/srv/oneskyit_site
|
||||
# # - ./srv/nextcloud:/srv/nextcloud
|
||||
|
||||
# - ./conf/php/custom_php7.ini:/usr/local/etc/php/conf.d/custom_php7.ini
|
||||
|
||||
# - ./logs/php7:/logs
|
||||
# # ports:
|
||||
# # - "9007:9000"
|
||||
# # networks:
|
||||
# # - local-net
|
||||
php7:
|
||||
restart: always
|
||||
container_name: ${CONTAINER_PHP7}
|
||||
# image: php:fpm
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: php7.Dockerfile
|
||||
volumes:
|
||||
- ./srv/html_php:/srv/html_php
|
||||
- ./srv/oneskyit_site:/srv/oneskyit_site
|
||||
# - ./srv/nextcloud:/srv/nextcloud
|
||||
|
||||
- ./conf/php/custom_php7.ini:/usr/local/etc/php/conf.d/custom_php7.ini
|
||||
|
||||
- ./logs/php7:/logs
|
||||
# ports:
|
||||
# - "9007:9000"
|
||||
# networks:
|
||||
# - local-net
|
||||
|
||||
# phpmyadmin:
|
||||
# image: phpmyadmin
|
||||
@@ -227,10 +212,10 @@ services:
|
||||
restart: always
|
||||
container_name: ${CONTAINER_REDIS}
|
||||
image: redis
|
||||
ports:
|
||||
# host to image
|
||||
# default port is 6379
|
||||
- "${AE_REDIS_PORT}:6379"
|
||||
# ports:
|
||||
# # host to image
|
||||
# # default port is 6379
|
||||
# - "${AE_REDIS_PORT}:6379"
|
||||
|
||||
aether_api_gunicorn:
|
||||
restart: always
|
||||
@@ -243,6 +228,8 @@ services:
|
||||
- ./.env
|
||||
ports:
|
||||
- "${AE_API_GUNICORN_PORT}:5005"
|
||||
extra_hosts:
|
||||
- "${DOCKER_AE_SERVER_EXTRA_HOST}"
|
||||
# expose:
|
||||
# - 5005
|
||||
# networks:
|
||||
@@ -329,9 +316,11 @@ services:
|
||||
# networks:
|
||||
# - local-net
|
||||
extra_hosts:
|
||||
# - dev-api.oneskyit.com:192.168.32.20
|
||||
- "${DOCKER_AE_SERVER_EXTRA_HOST}"
|
||||
- "${DOCKER_AE_API_SERVER_EXTRA_HOST}"
|
||||
- "${DOCKER_AE_API_BAK_SERVER_EXTRA_HOST}"
|
||||
- "${DOCKER_AE_API_V5_SERVER_EXTRA_HOST}"
|
||||
# - dev-api.oneskyit.com:192.168.32.20
|
||||
volumes:
|
||||
- ./conf/aether_flask_gunicorn_conf.py:/conf/gunicorn_flask_conf.py
|
||||
- ./conf/aether_flask_requirements_current.txt:/requirements_current.txt
|
||||
|
||||
Reference in New Issue
Block a user