319 lines
13 KiB
YAML
319 lines
13 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
web:
|
|
restart: unless-stopped
|
|
container_name: ae_web_dev
|
|
build:
|
|
# context: ./builds
|
|
context: ./
|
|
dockerfile: aether_nginx.Dockerfile
|
|
env_file:
|
|
- ./.env
|
|
environment:
|
|
# NOTE: This does not seem to work with nginx yet???
|
|
# NOTE: Use the template directory and .template extension for the .conf files.
|
|
# - NGINX_SERVER_NAMES="dev-demo.oneskyit.com dev-example.oneskyit.com"
|
|
# - NGINX_SERVER_NAMES="dev-idaa.oneskyit.com dev-ishlt.oneskyit.com"
|
|
# - AE_DOMAIN_LIST:'dev-aapor.oneskyit.com dev-businessgroup.oneskyt.com dev-cmsc.oneskyit.com dev-idaa.oneskyit.com dev-ishlt.oneskyit.com dev-ncsd.oneskyit.com dev-npa.oneskyit.com dev-rli.oneskyit.com'
|
|
# - NGINX_SERVER_NAMES="flask_gunicorn.localhost demo.localhost dev.localhost dev.oneskyit.com dev-app.oneskyit.com dev-connect.oneskyit.com *.dev-connect.oneskyit.com dev-demo.oneskyit.com *.dev-demo.oneskyit.com dev-aapor.oneskyit.com *.dev-aapor.oneskyit.com dev-businessgroup.oneskyt.com *.dev-businessgroup.oneskyt.com dev-cmsc.oneskyit.com *.dev-cmsc.oneskyit.com dev-idaa.oneskyit.com *.dev-idaa.oneskyit.com dev-ishlt.oneskyit.com *.dev-ishlt.oneskyit.com dev-ncsd.oneskyit.com *.dev-ncsd.oneskyit.com dev-npa.oneskyit.com *.dev-npa.oneskyit.com dev-rli.oneskyit.com *.dev-rli.oneskyit.com test-app.oneskyit.com"
|
|
- NGINX_SERVER_NAMES="flask_gunicorn.localhost demo.localhost dev.localhost dev.oneskyit.com dev-app.oneskyit.com dev-connect.oneskyit.com dev-demo.oneskyit.com dev-aapor.oneskyit.com dev-businessgroup.oneskyt.com dev-cmsc.oneskyit.com dev-idaa.oneskyit.com dev-ishlt.oneskyit.com dev-ncsd.oneskyit.com dev-npa.oneskyit.com dev-rli.oneskyit.com test-app.oneskyit.com"
|
|
ports:
|
|
- "${OSIT_WEB_HTTP_PORT}:80"
|
|
- "${OSIT_WEB_HTTPS_PORT}:443"
|
|
# - "80:80"
|
|
# - "443:443"
|
|
# - "8181:80"
|
|
# - "8443:443"
|
|
# networks:
|
|
# - local-net
|
|
volumes:
|
|
- ./srv/html_php:/srv/html_php
|
|
- ./srv/oneskyit_site:/srv/oneskyit_site
|
|
|
|
- ./srv/hosted_files_ln:/srv/hosted_files
|
|
- ./srv/hosted_tmp_ln:/srv/hosted_tmp
|
|
|
|
# NOTE: Nextcloud Docker container requires (sort of) the path to be /var/www/html
|
|
# - ./srv/nextcloud:/srv/nextcloud
|
|
# - ./srv/nextcloud/app:/var/www/html
|
|
# - ./srv/nextcloud/apps:/var/www/html/apps
|
|
# - ./srv/nextcloud/config:/var/www/html/config
|
|
# - ./srv/nextcloud/data:/var/www/html/data
|
|
|
|
# - ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./conf/nginx/options-ssl-nginx.conf:/etc/nginx/options-ssl-nginx.conf
|
|
# - ./conf/nginx/other.conf:/etc/nginx/conf.d/other.conf
|
|
|
|
- ./conf/nginx/site.conf:/etc/nginx/conf.d/0_site.conf
|
|
|
|
# - ./conf/nginx/site-enabled_aether-mailman2.conf:/etc/nginx/conf.d/site-enabled_aether-mailman2.conf
|
|
# - ./conf/nginx/site-enabled_aether-nextcloud.conf:/etc/nginx/conf.d/site-enabled_aether-nextcloud.conf
|
|
# - ./conf/nginx/site-enabled_aether-phpmyadmin.conf:/etc/nginx/conf.d/site-enabled_aether-phpmyadmin.conf
|
|
- ./conf/nginx/site-enabled_aether-phpmyadmin.conf:/etc/nginx/templates/site-enabled_aether-phpmyadmin.conf.template
|
|
|
|
# - ./conf/nginx/site-enabled_oneskyit.conf:/etc/nginx/conf.d/site-enabled_oneskyit.conf
|
|
- ./conf/nginx/site-enabled_oneskyit.conf:/etc/nginx/templates/site-enabled_oneskyit.conf.template
|
|
|
|
- ./conf/nginx/site-enabled_aether_fastapi_gunicorn.conf:/etc/nginx/templates/site-enabled_aether_fastapi_gunicorn.conf.template
|
|
- ./conf/nginx/site-enabled_aether_flask_gunicorn.conf:/etc/nginx/templates/site-enabled_aether_flask_gunicorn.conf.template
|
|
|
|
- ./conf/certs/fullchain.pem:/etc/certs/fullchain.pem
|
|
- ./conf/certs/privkey.pem:/etc/certs/privkey.pem
|
|
- ./conf/certs/ssl-dhparams.pem:/etc/certs/ssl-dhparams.pem
|
|
|
|
- ./logs/web:/logs
|
|
# volumes_from:
|
|
# - nextcloud25
|
|
depends_on:
|
|
- php7
|
|
- aether_api_gunicorn
|
|
- aether_app_gunicorn
|
|
# links:
|
|
# # - nextcloud25
|
|
# - php7
|
|
# - aether_api_gunicorn
|
|
# - aether_app_gunicorn
|
|
# # - aether_api_gunicorn_bak
|
|
# stdin_open: true # docker run -i
|
|
# tty: true # docker run -t
|
|
|
|
# mailman2:
|
|
# image: d3fk/mailman2
|
|
# container_name: ae_mailman2
|
|
# # hostname: mails.oneskyit.com
|
|
# hostname: mail.localhost
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "8889:80"
|
|
# # - "8443:443"
|
|
# - "2525:25"
|
|
# - "25465:465"
|
|
# - "25587:587"
|
|
# # env_file:
|
|
# # - ./conf/mailman2.env
|
|
# environment:
|
|
# - EMAIL_HOST=mail.oneskyit.com
|
|
# # - URL_HOST=lists.localhost
|
|
# - URL_HOST=mailman2-oneskyit.localhost
|
|
# - LIST_ADMIN=admin@oneskyit.com
|
|
# - MASTER_PASSWORD=strong_pass_321
|
|
# - URL_PATTERN=http
|
|
# # - SSL_FROM_CONTAINER="true"
|
|
# # - SSL_SELFSIGNED="true"
|
|
# # - ENABLE_SPF_CHECK="true"
|
|
# - URL_ROOT=lists/
|
|
# extra_hosts:
|
|
# - "mail.oneskyit.com:127.0.0.1"
|
|
# # - "oneskyit.com:the linode ip"
|
|
# volumes:
|
|
# - ./srv/mailman2/archives:/var/lib/mailman/archives
|
|
# - ./srv/mailman2/lists:/var/lib/mailman/lists
|
|
# - ./srv/mailman2/keys:/etc/exim4/tls.d
|
|
# - ./logs/mailman2/apache2:/var/log/apache2
|
|
# - ./logs/mailman2/exim4:/var/log/exim4
|
|
# - ./logs/mailman2/mailman:/var/log/mailman
|
|
# # - ./logs/mailman2/mailman_error.log:/var/lib/mailman/logs/error
|
|
#
|
|
# # - ./customcert.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
# # - ./customcertkey.key:/etc/ssl/private/ssl-cert-snakeoil.key
|
|
|
|
# php5:
|
|
# restart: always
|
|
# container_name: ae_php5_dev
|
|
# # image: php:5-fpm
|
|
# build:
|
|
# context: ./
|
|
# dockerfile: php5.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"
|
|
# # networks:
|
|
# # - local-net
|
|
php7:
|
|
restart: always
|
|
container_name: ae_php7_dev
|
|
# 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
|
|
container_name: ae_phpmyadmin
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mariadb
|
|
ports:
|
|
- 8888:80
|
|
env_file:
|
|
- ./.env
|
|
environment:
|
|
- PMA_ARBITRARY=1
|
|
- UPLOAD_LIMIT=1G
|
|
|
|
mariadb:
|
|
container_name: ae_mariadb_dev
|
|
# image: mariadb/server:latest
|
|
image: mariadb:10.9
|
|
# image: mariadb:10.6
|
|
restart: unless-stopped
|
|
# env_file:
|
|
# - ./.env
|
|
# - filename.env
|
|
ports:
|
|
- "3307:3306"
|
|
volumes:
|
|
- ./srv/mariadb:/var/lib/mysql
|
|
# - ./conf/mariadb/password_reset.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
|
# - ./conf/mariadb/password_reset.sql:/password_reset.sql:z
|
|
# - ./srv/mariadb_ln:/var/lib/mysql
|
|
# - ./conf/mariadb/my.cnf:/etc/my.cnf
|
|
# environment:
|
|
# - MARIADB_ROOT_PASSWORD=$$1sky.Adapting.7e2
|
|
# - MARIADB_ROOT_PASSWORD=CentauriStar123
|
|
# - MARIADB_DATABASE: 'my_env_db'
|
|
# - MYSQL_ROOT_PASSWORD=$$1sky.Adapting.7e2
|
|
# - MYSQL_ROOT_PASSWORD=CentauriStar123
|
|
# - MYSQL_PASSWORD=MyPassword
|
|
# - MYSQL_DATABASE=nextcloud
|
|
# - MYSQL_USER=nextcloud
|
|
|
|
# nextcloud25:
|
|
# container_name: ae_nextcloud25_dev
|
|
# build:
|
|
# # context: ./builds
|
|
# context: ./
|
|
# dockerfile: nextcloud25_fpm.Dockerfile
|
|
# # image: nextcloud:fpm
|
|
# restart: unless-stopped
|
|
# links:
|
|
# - mariadb
|
|
# depends_on:
|
|
# - mariadb
|
|
# volumes:
|
|
# - ./srv/nextcloud/app:/var/www/html
|
|
# - ./srv/nextcloud/apps:/var/www/html/apps
|
|
# - ./srv/nextcloud/custom_apps:/var/www/html/custom_apps
|
|
# - ./srv/nextcloud/config:/var/www/html/config
|
|
# - ./srv/nextcloud/data:/var/www/html/data
|
|
# - ./srv/nextcloud/themes:/var/www/html/themes
|
|
# environment:
|
|
# - MYSQL_PASSWORD=MyPassword.1248
|
|
# - MYSQL_DATABASE=nextcloud
|
|
# - MYSQL_USER=nextcloud
|
|
# - MYSQL_HOST=mariadb
|
|
# - NEXTCLOUD_TRUSTED_DOMAINS=oneskyit.com
|
|
|
|
redis:
|
|
restart: always
|
|
container_name: ae_redis_dev
|
|
image: redis
|
|
ports:
|
|
# host to image
|
|
# default port is 6379
|
|
- "6389:6379"
|
|
|
|
aether_api_gunicorn:
|
|
restart: always
|
|
container_name: ae_api_dev
|
|
build:
|
|
# context: ./builds
|
|
context: ./
|
|
dockerfile: aether_fastapi_gunicorn.Dockerfile
|
|
env_file:
|
|
- ./.env
|
|
ports:
|
|
- "5065:5005"
|
|
# expose:
|
|
# - 5005
|
|
# networks:
|
|
# - local-net
|
|
volumes:
|
|
- ./conf/aether_fastapi_gunicorn_conf.py:/conf/gunicorn_fastapi_conf.py
|
|
- ./conf/aether_fastapi_requirements_current.txt:/conf/requirements_current.txt
|
|
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
|
|
|
|
- ./logs/ae_api:/logs
|
|
# - ./logs/ae_api/aether_fastapi_gunicorn.log:/logs/gunicorn.log
|
|
# - ./logs/aether_fastapi_gunicorn_access.log:/logs/gunicorn_access.log
|
|
# - ./logs/aether_fastapi_gunicorn_error.log:/logs/gunicorn_error.log
|
|
# - ./logs/aether_api.log:/logs/aether_api.log
|
|
# - ./logs/ae_api/aether_api.log.1:/logs/aether_api.log.1
|
|
# - ./logs/ae_api/aether_api.log.2:/logs/aether_api.log.2
|
|
# - ./logs/ae_api/aether_api.log.3:/logs/aether_api.log.3
|
|
# - ./logs/ae_api/aether_api.log.4:/logs/aether_api.log.4
|
|
# - ./logs/ae_api/aether_api.log.5:/logs/aether_api.log.5
|
|
# - ./logs/ae_api/aether_api_warning.log:/logs/aether_api_warning.log
|
|
|
|
- ./srv/aether_api_ln:/srv/aether_api
|
|
- ./srv/hosted_files_ln:/srv/hosted_files
|
|
- ./srv/hosted_tmp_ln:/srv/hosted_tmp
|
|
|
|
# - ./tmp/ae_api:/tmp
|
|
|
|
- ./temp/ae_api:/temp
|
|
# - ./temp/ae_api/aether_fastapi_requirements_current.txt:/temp/requirements_current.txt
|
|
# links:
|
|
# - redis
|
|
depends_on:
|
|
- redis
|
|
stdin_open: true # docker run -i
|
|
tty: true # docker run -t
|
|
|
|
aether_app_gunicorn:
|
|
restart: always
|
|
container_name: ae_app_dev
|
|
build:
|
|
# context: ./builds
|
|
context: ./
|
|
dockerfile: aether_flask_gunicorn.Dockerfile
|
|
# image: tiangolo/uvicorn-gunicorn:latest
|
|
env_file:
|
|
- ./.env
|
|
ports:
|
|
- "5055:5005"
|
|
# expose:
|
|
# - 5005
|
|
# networks:
|
|
# - local-net
|
|
extra_hosts:
|
|
# - dev-api.oneskyit.com:192.168.32.20
|
|
- "${DOCKER_AE_APP_EXTRA_HOST}"
|
|
volumes:
|
|
- ./conf/aether_flask_gunicorn_conf.py:/conf/gunicorn_flask_conf.py
|
|
- ./conf/aether_app_config.py:/srv/aether_app/flask_config_v2.py
|
|
- ./logs/ae_app:/logs
|
|
# - ./logs/aether_flask_gunicorn_access.log:/logs/gunicorn_access.log
|
|
# - ./logs/aether_flask_gunicorn_error.log:/logs/gunicorn_error.log
|
|
# - ./logs/aether_app.log:/logs/aether_app.log
|
|
# - ./logs/aether_app_warning.log:/logs/aether_app_warning.log
|
|
- ./srv/aether_app_ln:/srv/aether_app
|
|
- ./srv/hosted_files_ln:/srv/hosted_files
|
|
- ./srv/hosted_tmp_ln:/srv/hosted_tmp
|
|
depends_on:
|
|
- aether_api_gunicorn
|
|
stdin_open: true # docker run -i
|
|
tty: true # docker run -t
|
|
|
|
# networks:
|
|
# local-net:
|
|
# driver: bridge
|