Created
August 22, 2017 20:15
-
-
Save stif/0a54b9a2d6d3865ccddde182c72ddfc9 to your computer and use it in GitHub Desktop.
c´t Umbauanleitung Docker-Compose File
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.1' | |
networks: | |
extern: | |
ipam: | |
config: | |
- subnet: 172.20.0.0/24 | |
gateway: 172.20.0.1 | |
services: | |
nginxproxy: | |
image: jwilder/nginx-proxy | |
container_name: nginxproxy | |
environment: | |
- TZ=Europe/Berlin | |
ports: | |
- 80:80 | |
- 443:443 | |
networks: | |
extern: | |
ipv4_address: 172.20.0.2 | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- nginxproxy_certs:/etc/nginx/certs:ro | |
- nginxproxy_vhosts:/etc/nginx/vhost.d | |
- nginxproxy_html:/usr/share/nginx/html | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
nginxproxy_comp: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
container_name: nginxproxy_comp | |
depends_on: | |
- nginxproxy | |
environment: | |
- TZ=Europe/Berlin | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- nginxproxy_certs:/etc/nginx/certs:rw | |
- nginxproxy_vhosts:/etc/nginx/vhost.d | |
- nginxproxy_html:/usr/share/nginx/html | |
#docker run -d --name gitweb --network=extern -v gitwebrepos:/var/lib/git -v /usr/local/share/docker/gitweb_htpasswd:/etc/nginx/.htpasswd -e "VIRTUAL_HOST=git.netmedia.pro" -e "LETSENCRYPT_HOST=git.netmedia.pro" -e "[email protected]" fraoustin/gitweb | |
gitweb: | |
image: fraoustin/gitweb | |
container_name: gitweb | |
depends_on: | |
- nginxproxy_comp | |
environment: | |
- TZ=Europe/Berlin | |
networks: | |
extern: | |
ipv4_address: 172.20.0.3 | |
volumes: | |
- gitwebrepos:/var/lib/git | |
- /usr/local/share/docker/gitweb_htpasswd:/etc/nginx/.htpasswd | |
environment: | |
- VIRTUAL_HOST=gitweb.example.com | |
- LETSENCRYPT_HOST=gitweb.example.com | |
- [email protected] | |
volumes: | |
nginxproxy_certs: | |
nginxproxy_vhosts: | |
nginxproxy_html: | |
gitwebrepos: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment