diff --git a/compose.bash b/compose.bash new file mode 100755 index 0000000..7c8636a --- /dev/null +++ b/compose.bash @@ -0,0 +1,19 @@ +#!/bin/bash + +## + +reset + +clear + +## + +#set -e + +#set -x + +docker compose down --remove-orphans + +docker compose up -d + +docker logs osiris-letsencrypt -f \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..7031130 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,305 @@ +services: + +########################################## +## +## osiris / networking +## +########################################## + + osiris-proxy: + + container_name: osiris-proxy + + image: nginxproxy/nginx-proxy:1.6 + + restart: unless-stopped + + ports: + + - 80:80 + + - 443:443 + + volumes: + + - /var/run/docker.sock:/tmp/docker.sock:ro + + - /var/docker/nginx/html:/usr/share/nginx/html + + - /var/docker/nginx/certs:/etc/nginx/certs + + - /var/docker/nginx/vhost:/etc/nginx/vhost.d + + logging: + + options: + + max-size: "10m" + + max-file: "3" + + osiris-letsencrypt: + + container_name: osiris-letsencrypt + + image: jrcs/letsencrypt-nginx-proxy-companion + + restart: unless-stopped + + volumes_from: + + - osiris-proxy + + volumes: + + - /var/run/docker.sock:/var/run/docker.sock + + - /var/docker/nginx/acme:/etc/acme.sh + + environment: + + DEFAULT_EMAIL: yankee@gmail.com + +########################################## +## +## osiris / file storage +## +########################################## + + osiris-network-files: + + container_name: osiris-network-files + + image: itsthenetwork/nfs-server-alpine:12 + + privileged: true + + restart: unless-stopped + + volumes: + + - /yankee/volumes/files/:/media + + ports: + + - "2049:2049" + + environment: + + - SHARED_DIRECTORY=/media + +########################################## +## +## osiris / relational data +## +########################################## + + osiris-database: + + container_name: osiris-database + + image: mariadb:latest + + restart: unless-stopped + +## ports: +## +## - "127.0.0.1:3306:3306" + + environment: + + MYSQL_ROOT_PASSWORD: aggiepride + + MYSQL_DATABASE: yankee_gnome_twitch + + MYSQL_USER: yankee_gnome_twitch + + MYSQL_PASSWORD: yankee_gnome_twitch + + volumes: + + - /yankee/volumes/database:/var/lib/mysql + + osiris-phpmyadmin: + + container_name: osiris-phpmyadmin + + image: beeyev/phpmyadmin-lightweight + + depends_on: + + - osiris-database + + links: + + - osiris-database + + environment: + + PMA_HOST: osiris-database + + VIRTUAL_HOST: database.yankee.embanet.online + + LETSENCRYPT_HOST: database.yankee.embanet.online + +########################################## +## +## osiris / source code +## +########################################## + + osiris-code: + + container_name: osiris-code + + image: gitea/gitea:1.16.8 + + restart: unless-stopped + + volumes: + + - /yankee/volumes/code/:/data + + - /etc/timezone:/etc/timezone:ro + + - /etc/localtime:/etc/localtime:ro + + ports: + + - 3000:3000 + + expose: + + - 3000 + + environment: + + USER_UID: 1000 + + USER_GID: 1000 + + VIRTUAL_PORT: 3000 + + VIRTUAL_HOST: code.yankee.embanet.online + + LETSENCRYPT_HOST: code.yankee.embanet.online + +########################################## +## +## osiris / source messaging +## +########################################## + + osiris-messaging: + + container_name: osiris-messaging + + image: webcenter/activemq:latest + + ports: + + - "1883:1883" + + - "5672:5672" + + - "8161:8161" + + - "61613:61613" + + - "61614:61614" + + - "61616:61616" + + volumes: + + - /yankee/volumes/activemq/data:/data/activemq + + - /yankee/volumes/activemq/logs:/var/log/activemq + + expose: + + - 8161 + + environment: + + ACTIVEMQ_REMOVE_DEFAULT_ACCOUNT: "true" + + ACTIVEMQ_ADMIN_LOGIN: admin + + ACTIVEMQ_ADMIN_PASSWORD: password + + ACTIVEMQ_WRITE_LOGIN: write + + ACTIVEMQ_WRITE_PASSWORD: password + + ACTIVEMQ_READ_LOGIN: read + + ACTIVEMQ_READ_PASSWORD: password + + VIRTUAL_PORT: 8161 + + VIRTUAL_HOST: messaging.yankee.embanet.online + + LETSENCRYPT_HOST: messaging.yankee.embanet.online + +########################################## +## +## osiris / restful api +## +########################################## + + yankee-gnome-twitch-api: + + container_name: yankee-gnome-twitch-api + + ## image: softwareshinobi/yankee-gnome-content-api + + image: nginx + + depends_on: + + - osiris-database + + restart: unless-stopped + + ports: + + - 8888:8888 + + environment: + + DB_HOST: osiris-database + + DB_PORT: 3306 + + DB_NAME: yankee_gnome_twitch + + DB_USER: yankee_gnome_twitch + + DB_PASS: yankee_gnome_twitch + + VIRTUAL_PORT: 8888 + + VIRTUAL_HOST: apis.yankee.embanet.online + + LETSENCRYPT_HOST: apis.yankee.embanet.online + +########################################## +## +## osiris / restful api +## +########################################## + + yankee.embanet.online: + + container_name: yankee.embanet.online + + image: httpd + + restart: unless-stopped + + environment: + + VIRTUAL_HOST: yankee.embanet.online + + LETSENCRYPT_HOST: yankee.embanet.online