Created
April 29, 2015 22:32
-
-
Save prologic/b5525a50bb4d867d84a2 to your computer and use it in GitHub Desktop.
Dockerized Wordpress with Hipache and AutoDock
This file contains 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
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 | |
wordpress: | |
image: wordpress | |
environment: | |
- VIRTUALHOST=blog.mydomain.com | |
links: | |
- mysql | |
mysql: | |
image: mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=mypassword | |
volumes: | |
- /data/mysql:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites:
Register a domain name
Setup a wildcard A record that points to your Docker Host
Quick Start:
On a Docker Host of your choice:
Copy the above
docker-compose.yml
file to your systemEnsure you have docker-compose installed
Run
docker-compose up -d
NB: You may want to modify the
VIRTUALHOST
environment variable to suit your needs.