Created
December 29, 2015 13:51
-
-
Save sl0ki/8effa41a47c51cea5ed4 to your computer and use it in GitHub Desktop.
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
# main DNS server for containers | |
dns: | |
image: phensley/docker-dns | |
container_name: dns | |
restart: always | |
volumes: | |
- /var/run/docker.sock:/docker.sock | |
ports: | |
- "172.17.42.1:53:53/udp" # set dns port to docker bridge IP | |
# nginx main (bulild system 80,443 ports) | |
nginx: | |
image: nginx | |
container_name: nginx | |
restart: always | |
volumes: | |
- ./nginx/config/:/etc/nginx/conf.d/ | |
- ./nginx/ssl/:/etc/nginx/ssl/ | |
- ./nginx/www/:/www/ | |
ports: | |
- "80:80" | |
# - "443:443" | |
dns: | |
- 172.17.42.1 # dokcer dns server | |
- 8.8.8.8 # google dns | |
# DB | |
mysql: | |
image: mysql | |
container_name: mysql | |
restart: always | |
environment: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
ports: | |
- "3306:3306" | |
dns: | |
- 172.17.42.1 # docker dns server | |
- 8.8.8.8 # google dns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment