aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerrick Schwabe <[email protected]>2022-03-28 15:57:23 -0600
committerDerrick Schwabe <[email protected]>2022-03-28 17:03:14 -0600
commit082883e8f6a23eb07a4259484f5d85de6a7125f3 (patch)
tree3068d9da040d3fa35dd3e317af0f975dc3ad4f91
parent17bdde5dd86ad3afc17be898ed68fa7f307abf12 (diff)
downloadcoinos-server-082883e8f6a23eb07a4259484f5d85de6a7125f3.tar.gz
coinos-server-082883e8f6a23eb07a4259484f5d85de6a7125f3.zip
Add nginx-ssl-proxy service which automatically gets SSL cert,stageUpdate
proxy traffic to secondary/vanilla nginx service that serves coinos-ui static files
-rw-r--r--docker-compose.staging.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml
index c29ed3aa..51d41ae3 100644
--- a/docker-compose.staging.yml
+++ b/docker-compose.staging.yml
@@ -22,6 +22,7 @@ services:
profiles:
- donotstart
+ #static serving:
nginx:
depends_on:
- app
@@ -31,10 +32,23 @@ services:
- type: bind
source: ./config/nginx/default.conf
target: /etc/nginx/conf.d/default.conf
- - ../coinos-ui/dist:/coinos
+ - ../coinos-ui/dist:/coinos
+
+ #automatic SSL:
+ nginx-ssl-proxy:
+ depends_on:
+ - nginx
+ container_name: nginx-ssl-proxy
+ image: danieldent/nginx-ssl-proxy
+ environment:
+ UPSTREAM: 'nginx:80' #< send traffic to nginx service above
+ SERVERNAME: ${HOST}
ports:
- 80:80
-
+ - 443:443
+ volumes:
+ - /etc/letsencrypt
+
networks:
default:
external: