From 0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 26 May 2019 10:04:21 -0300 Subject: Add static file server container with nginx --- TODOs.org | 3 ++- docker-compose.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/TODOs.org b/TODOs.org index 65571b4..25aa7df 100644 --- a/TODOs.org +++ b/TODOs.org @@ -26,7 +26,8 @@ In this situation, I if go on with automating the deployment I'd rather pick the ** Fully deployable from code Use NixOps and Terraform to fully automate all of the configuration. * Services -** TODO =euandreh.org=: Static webhosting +** DONE =euandreh.org=: Static webhosting +CLOSED: [2019-05-26 Sun 10:17] ** TODO =mail.euandreh.org=: Email + webmail ** TODO =cloud.euandreh.org=: Nextcloud: storage, calendar, contacts, notes ** TODO =hydra.euandreh.org=: Hydra diff --git a/docker-compose.yaml b/docker-compose.yaml index 00c8cd0..c268cf1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -26,6 +26,20 @@ services: depends_on: - proxy + static: + image: nginx + container_name: static-nginx + restart: always + volumes: + - "${VOLUME_HOME}/static:/usr/share/nginx/html" + ports: + - "5001:80" + environment: + - VIRTUAL_HOST=${TLD} + - VIRTUAL_PORT=5001 + - LETSENCRYPT_HOST=${TLD} + - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} + wallabag: image: wallabag/wallabag container_name: wallabag -- cgit v1.2.3