jwilder/nginx-proxy and a network
create a network create network with: docker network create nginx-proxy
startup your "master" nginx-proxy (example down here)
version: '2'
services:
nginx-proxy:
restart: unless-stopped
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
external:
name: nginx-proxy
create a new folder and copy the content from exampel in there.
edit the docker-compose.yml (APACHE_SERVERALIAS, VIRTUAL_HOST) and ad the server alias to your dns/hosts (mac: sudo vi /etc/hosts and 127.0.0.1 docker.local)
run docker-compose up -d
Content type
Image
Digest
Size
190.8 MB
Last updated
about 9 years ago
docker pull ex3mp/apache