Skip to content

Instantly share code, notes, and snippets.

@prologic
Created March 22, 2015 15:04
Show Gist options
  • Save prologic/72ca4076a63d5dd1687d to your computer and use it in GitHub Desktop.
Save prologic/72ca4076a63d5dd1687d to your computer and use it in GitHub Desktop.
A mini Docker based PaaS
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
@prologic
Copy link
Author

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).

@prologic
Copy link
Author

The software that powers all this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment