Created
July 11, 2013 21:52
-
-
Save mikemilano/5979585 to your computer and use it in GitHub Desktop.
D8 docker yaml
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
base_config: &base_config | |
base_image: ubuntu | |
dns: | |
- 8.8.8.8 | |
- 8.8.4.4 | |
containers: | |
- lb: | |
config: &lb_container_config | |
<<: *base_config | |
user: haproxy | |
command: service haproxy start | |
- web: | |
config: &web_container_config | |
<<: *base_config | |
user: nginx | |
command: service nginx start | |
- db: | |
config: &db_container_config | |
<<: *base_config | |
user: mysql | |
command: service mysql start | |
- solr: | |
config: &solr_container_config | |
<<: *base_config | |
user: solr | |
command: service tomcat6 start | |
environments: | |
dev: | |
config: &dev_env_config | |
environment: | |
- ENV=dev | |
volumes: | |
- /var/dev: {} | |
hosts: | |
dev.web: | |
config: | |
<<: *web_container_config | |
<<: *dev_env_config | |
ports: | |
- 80 | |
dev.db: | |
config: | |
<<: *db_container_config | |
<<: *dev_env_config | |
ports: | |
- 3306 | |
dev.solr: | |
config: | |
<<: *solr_container_config | |
<<: *dev_env_config | |
ports: | |
- 8080 | |
live: | |
config: &live_env_config | |
environment: | |
- ENV=live | |
volumes: | |
- /var/live: {} | |
hosts: | |
www.example.com: | |
config: | |
<<: *lb_container_config | |
<<: *live_env_config | |
ports: | |
- 80 | |
- 443 | |
www1.example.com: | |
config: | |
<<: *web_container_config | |
<<: *live_env_config | |
ports: | |
- 8000 | |
- 9000 | |
www2.example.com: | |
config: | |
<<: *web_container_config | |
<<: *live_env_config | |
ports: | |
- 8001 | |
- 9001 | |
db.example.com: | |
config: | |
<<: *db_container_config | |
<<: *live_env_config | |
ports: | |
- 3306 | |
solr.example.com: | |
config: | |
<<: *solr_container_config | |
<<: *live_env_config | |
ports: | |
- 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment