version: '2'
services:
test:
expose:
- "80"
environment:
- VIRTUAL_HOST=dev.test.ru
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: none
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.conf:/etc/nginx/proxy.conf
links:
- test
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod 0755 /usr/local/bin/docker-entrypoint.sh
CMD ["/usr/local/bin/docker-entrypoint.sh"]
/bin/sh -c bash