Make this ting scaleable

This commit is contained in:
Patrick Jentsch
2020-01-28 14:38:58 +01:00
parent f1ab50b283
commit 93dcd7c32f
2 changed files with 20 additions and 4 deletions

View File

@ -14,16 +14,14 @@ services:
image: jwilder/nginx-proxy:latest
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
- ./nginx-proxy/vhost.d:/etc/nginx/vhost.d:ro
# - ./certs:/etc/nginx/certs
web:
depends_on:
- db
- redis
deploy:
placement:
constraints:
- node.role == manager
replicas: 25
environment:
- VIRTUAL_HOST=nopaque.localhost,129.70.216.233
env_file: nopaque.env