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