Skip to content

Instantly share code, notes, and snippets.

@gegere
Created July 23, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gegere/a9de4bea428cdb9d4bba to your computer and use it in GitHub Desktop.
Save gegere/a9de4bea428cdb9d4bba to your computer and use it in GitHub Desktop.
web-data:
image: ubuntu:latest
volumes:
- /data
tags:
- web
db-data:
image: busybox:latest
volumes:
- /var/lib/mysql
mysql:
image: htmlgraphic/mysql
expose:
- "3306"
environment:
- MYSQL_PASS=5bw3ke2p7f
tags:
- web
volumes_from:
- db-data
apache:
image: htmlgraphic/apache
ports:
- "80:80"
- "443:443"
environment:
- NODE_ENVIRONMENT=production
links:
- "mysql:mysql"
target_num_containers: 2
volumes_from:
- web-data
tags:
- web
restart: always
sequential_deployment: true
ssh:
image: tutum/ubuntu
ports:
- "2222:22"
environment:
- AUTHORIZED_KEYS="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbKBlYPbK29pUUwtwRIIjwCtZNujOUb77qHIeohOMk+O8z0gEIgkUwVI3x91AlbhctgpQor3IIeFITwGgIKVo33WW64HI9Nfr2vGx9EAfl9CL9cfDj9M9u4EFOn8NkD/TQMH4d1Fslt59eyl4fSV62d98zJ8goJwrolXM5NlS3hss8FtXhN6bNM0V5nliPUrv/1//3ZoZ5p0inOI1xWNHcMEILGllG+yqaknH9yIk880WoCYZuR7q2ddE6mxrBeJFiyryW5nhsxmXfHnsDVGiLh1C3hltEXzZ0Bdj11jhJfgIcuKU1iUFZg3kKVjRAvrteBQA328s5+UJswV+NWFiH hosting@htmlgraphic.com"
links:
- "mysql:mysql"
volumes_from:
- web-data
tags:
- web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment