diff options
author | EuAndreh <eu@euandre.org> | 2019-05-26 10:04:21 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-05-26 10:17:30 -0300 |
commit | 0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e (patch) | |
tree | 478e1119f0479e919f7ecdbd0c8972d7e1a8c7c5 | |
parent | TODOs.org (diff) | |
download | toph-0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e.tar.gz toph-0dd29515d817a3c7d6ea1b8470c4d2d32028ec4e.tar.xz |
Add static file server container with nginx
-rw-r--r-- | TODOs.org | 3 | ||||
-rw-r--r-- | docker-compose.yaml | 14 |
2 files changed, 16 insertions, 1 deletions
@@ -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 |