From 1445f3f29c690f274ad28ed19c150a5b95636f1b Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 19 Jul 2019 00:50:38 +0300 Subject: [PATCH] docker-compose --- docker-compose.yml | 7 +++---- frontend/docker-compose.yml | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 frontend/docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml index 41b3e90..d5e1b8b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,10 @@ version: '2' services: relayer: - image: relayer build: ./ restart: always - ports: - - 8000:8000 environment: - - NODE_ENV=production + NODE_ENV: production + VIRTUAL_HOST: relayer.tornado.cash + LETSENCRYPT_HOST: relayer.tornado.cash env_file: ./.env \ No newline at end of file diff --git a/frontend/docker-compose.yml b/frontend/docker-compose.yml new file mode 100644 index 0000000..c2bd757 --- /dev/null +++ b/frontend/docker-compose.yml @@ -0,0 +1,23 @@ +version: '2' + +services: + + nginx: + image: jwilder/nginx-proxy + restart: always + ports: + - 80:80 + - 443:443 + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro + - /etc/nginx/certs + - /etc/nginx/vhost.d + - /usr/share/nginx/html + + letsencrypt: + image: jrcs/letsencrypt-nginx-proxy-companion + restart: always + volumes_from: + - nginx + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro \ No newline at end of file