test_dockergen.base.yml 690 B

123456789101112131415161718192021222324252627282930
  1. volumes:
  2. nginx_conf:
  3. services:
  4. nginx-proxy-nginx:
  5. image: nginx
  6. container_name: nginx
  7. volumes:
  8. - nginx_conf:/etc/nginx/conf.d:ro
  9. ports:
  10. - "80:80"
  11. - "443:443"
  12. nginx-proxy-dockergen:
  13. image: nginxproxy/docker-gen
  14. command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
  15. volumes:
  16. - /var/run/docker.sock:/tmp/docker.sock:ro
  17. - ../../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
  18. - nginx_conf:/etc/nginx/conf.d
  19. web:
  20. image: web
  21. container_name: whoami
  22. expose:
  23. - "80"
  24. environment:
  25. WEB_PORTS: "80"
  26. VIRTUAL_HOST: whoami.nginx.container.docker