Skip to content

Instantly share code, notes, and snippets.

@KlimDos
Last active December 13, 2019 21:17
Show Gist options
  • Save KlimDos/1982a26cd3fb2390aaf2bd131369a5df to your computer and use it in GitHub Desktop.
Save KlimDos/1982a26cd3fb2390aaf2bd131369a5df to your computer and use it in GitHub Desktop.
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
app1:
image: nginx
restart: always
volumes:
- /home/sasha/workspace/service1/app1:/usr/share/nginx/html:ro
environment:
- VIRTUAL_HOST=d1.gofun.cf
networks:
- proxy-tier
app2:
image: nginx
restart: always
environment:
- VIRTUAL_HOST=d2.gofun.cf
networks:
- proxy-tier
networks:
proxy-tier:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment