Skip to content

Instantly share code, notes, and snippets.

@thiago
Forked from prologic/docker-compose.yml
Last active August 29, 2015 14:19
Show Gist options
  • Save thiago/acfdd47af867b344826a to your computer and use it in GitHub Desktop.
Save thiago/acfdd47af867b344826a to your computer and use it in GitHub Desktop.
A mini Docker based PaaS

Quick Start:

  • Set up a wildcard A record entry in your domain name's zone file.

Usage:

docker run -d -e VIRTUALHOST=myapp.mydomain.com user/myapp

This assumes:

  • Your app is listening on 80/tcp.

If this is not the case then pass in an extra environment variable -e PORT=8000 (for example).

The software that powers all this:

autodock:
image: prologic/autodock
ports:
- "1338:1338/udp"
- "1338:1338/tcp"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
autodocklogger:
image: prologic/autodock-logger
links:
- autodock
autodockhipache:
image: prologic/autodock-hipache
links:
- autodock
- hipache:redis
hipache:
image: hipache
ports:
- 80:80
- 443:443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment