docker-compose

This commit is contained in:
poma 2019-07-19 00:50:38 +03:00
parent 3a35ebec86
commit 1445f3f29c
2 changed files with 26 additions and 4 deletions

@ -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

@ -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