aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-26 10:04:21 -0300
committerEuAndreh <eu@euandre.org>2019-05-26 10:17:30 -0300
commit0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e (patch)
tree478e1119f0479e919f7ecdbd0c8972d7e1a8c7c5
parentTODOs.org (diff)
downloadtoph-0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e.tar.gz
toph-0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e.tar.xz
Add static file server container with nginx
-rw-r--r--TODOs.org3
-rw-r--r--docker-compose.yaml14
2 files changed, 16 insertions, 1 deletions
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