diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..85071bf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM alpine:3.10 as base +LABEL maintainer="Fanakis Apostolos " + +RUN apk add --update --no-cache openrc lighttpd \ + && rm -rf /var/cache/apk/* +RUN rc-update add lighttpd default + +FROM base as final + +COPY lighttpd.conf /etc/lighttpd/lighttpd.conf +EXPOSE 8000 + +STOPSIGNAL SIGTERM + +CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] diff --git a/docker-compose.yml b/docker-compose.yml index 4d0850f..c9948ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,17 +2,19 @@ version: '3.7' services: apella-guide: - image: nginx + build: ./ container_name: apella-guide restart: always env_file: - ./env/apella-guide.env - ports: - - "8080:80" + expose: + - "8000" volumes: - - ./src/:/usr/share/nginx/html:ro + - ./src/:/var/www/servers/apella-guide/ + networks: + - janus_apella-net # Networks in use networks: - apella-net: - driver: bridge + janus_apella-net: + external: true diff --git a/env/apella-guide.env b/env/apella-guide.env new file mode 100644 index 0000000..d1e3417 --- /dev/null +++ b/env/apella-guide.env @@ -0,0 +1,4 @@ +VIRTUAL_HOST=guide.apella.tk +VIRTUAL_PORT=8000 +LETSENCRYPT_HOST=guide.apella.tk +LETSENCRYPT_EMAIL=apotwohd@gmail.com diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..ba465a6 --- /dev/null +++ b/lighttpd.conf @@ -0,0 +1,12 @@ +server.document-root = "/var/www/servers/apella-guide/" + +server.port = 8000 + +mimetype.assign = ( + ".html" => "text/html", + ".js" => "application/javascript", + ".css" => "text/css", + ".png" => "image/png" +) + +index-file.names = ( "index.html" ) diff --git a/makefile b/makefile new file mode 100644 index 0000000..b909566 --- /dev/null +++ b/makefile @@ -0,0 +1,10 @@ +build: + @docker-compose -p apella-guide build; +run: + @docker-compose -p apella-guide up -d +stop: + @docker-compose -p apella-guide down +clean-data: + @docker-compose -p apella-guide down -v +clean-images: + @docker rmi `docker images -q -f "dangling=true"` diff --git a/src/index.html b/src/index.html index 6f631c9..8f998ec 100644 --- a/src/index.html +++ b/src/index.html @@ -34,7 +34,7 @@ Metamask 🧐

- In order to use blockchain based, decentralized applications the user needs to setup a gateway for their browser to communicate with blockchain. This is where Metamask comes in. + In order to use blockchain based, decentralized applications the user needs to setup a gateway for their browser to communicate with blockchain. This is where Metamask comes in.

@@ -110,7 +110,7 @@

- Visit Apella and enjoy free, uncensored communication 🥳 + Visit Apella and enjoy free, uncensored communication 🥳

@@ -120,9 +120,9 @@ right: '32px', left: 'unset', time: '0.3s', - mixColor: '#fff', + mixColor: '#d7d6dc', backgroundColor: '#fff', - buttonColorDark: '#100f2c', + buttonColorDark: '#282923', buttonColorLight: '#fff', saveInCookies: false, label: '🌓',