From 10a905f543a3dad593dbe609f2d20ac5ec3043f1 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Sun, 22 Mar 2020 19:51:18 +0200 Subject: [PATCH] Dockerize --- docker-compose.yml | 18 ++++++++++++++++++ env/apella-guide.env.example | 5 +++++ {assets => src/assets}/chrome.png | Bin {assets => src/assets}/firefox.png | Bin darkMode.js => src/darkMode.js | 0 index.css => src/index.css | 0 index.html => src/index.html | 0 markdown.css => src/markdown.css | 0 8 files changed, 23 insertions(+) create mode 100644 docker-compose.yml create mode 100644 env/apella-guide.env.example rename {assets => src/assets}/chrome.png (100%) rename {assets => src/assets}/firefox.png (100%) rename darkMode.js => src/darkMode.js (100%) rename index.css => src/index.css (100%) rename index.html => src/index.html (100%) rename markdown.css => src/markdown.css (100%) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4d0850f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.7' + +services: + apella-guide: + image: nginx + container_name: apella-guide + restart: always + env_file: + - ./env/apella-guide.env + ports: + - "8080:80" + volumes: + - ./src/:/usr/share/nginx/html:ro + +# Networks in use +networks: + apella-net: + driver: bridge diff --git a/env/apella-guide.env.example b/env/apella-guide.env.example new file mode 100644 index 0000000..78ec161 --- /dev/null +++ b/env/apella-guide.env.example @@ -0,0 +1,5 @@ +VIRTUAL_HOST=guide.apella.tk +VIRTUAL_PORT=8000 +LETSENCRYPT_HOST=guide.apella.tk +LETSENCRYPT_EMAIL=apotwohd@gmail.com +NGINX_PORT=8000 diff --git a/assets/chrome.png b/src/assets/chrome.png similarity index 100% rename from assets/chrome.png rename to src/assets/chrome.png diff --git a/assets/firefox.png b/src/assets/firefox.png similarity index 100% rename from assets/firefox.png rename to src/assets/firefox.png diff --git a/darkMode.js b/src/darkMode.js similarity index 100% rename from darkMode.js rename to src/darkMode.js diff --git a/index.css b/src/index.css similarity index 100% rename from index.css rename to src/index.css diff --git a/index.html b/src/index.html similarity index 100% rename from index.html rename to src/index.html diff --git a/markdown.css b/src/markdown.css similarity index 100% rename from markdown.css rename to src/markdown.css