Created
May 30, 2018 14:18
-
-
Save gHashTag/200d6ee7cc80e5ac0ab30bf294936877 to your computer and use it in GitHub Desktop.
docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "2" | |
| services: | |
| nginx: | |
| restart: always | |
| image: nginx | |
| container_name: nginx | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - "/etc/nginx/conf.d" | |
| - "/etc/nginx/vhost.d" | |
| - "/usr/share/nginx/html" | |
| - "./volumes/proxy/certs:/etc/nginx/certs:ro" | |
| nginx-gen: | |
| restart: always | |
| image: jwilder/docker-gen | |
| container_name: nginx-gen | |
| volumes: | |
| - "/var/run/docker.sock:/tmp/docker.sock:ro" | |
| - "./volumes/proxy/templates/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro" | |
| volumes_from: | |
| - nginx | |
| entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf | |
| letsencrypt-nginx-proxy-companion: | |
| restart: always | |
| image: jrcs/letsencrypt-nginx-proxy-companion | |
| container_name: letsencrypt-nginx-proxy-companion | |
| volumes_from: | |
| - nginx | |
| volumes: | |
| - "/var/run/docker.sock:/var/run/docker.sock:ro" | |
| - "./volumes/proxy/certs:/etc/nginx/certs:rw" | |
| environment: | |
| NGINX_DOCKER_GEN_CONTAINER: nginx-gen | |
| app1: | |
| image: playra/leela:0.1 | |
| container_name : app1 | |
| restart: always | |
| environment: | |
| VIRTUAL_HOST: www.xn--80aahtcrb0b.xn--p1ai, xn--80aahtcrb0b.xn--p1ai | |
| app2: | |
| image: registry.gitlab.com/ghashtag/mw:0.3 | |
| container_name : app2 | |
| restart: always | |
| environment: | |
| VIRTUAL_HOST: www.cityretreat.ru, cityretreat.ru, www.xn--e1afab2bbcjdc.xn--p1ai, xn--e1afab2bbcjdc.xn--p1ai | |
| test: | |
| image: registry.gitlab.com/ghashtag/mw:0.14 | |
| container_name : newtest-mw | |
| restart: always | |
| environment: | |
| VIRTUAL_HOST: www.crc.yoga, crc.yoga | |
| LETSENCRYPT_HOST: www.crc.yoga, crc.yoga | |
| LETSENCRYPT_EMAIL: [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment