Last active
December 29, 2016 22:18
-
-
Save bennetimo/91ca871c3aaa2e7a148a to your computer and use it in GitHub Desktop.
Simple Docker Compose for Ghost with MariaDB and Nginx. See http://coderunner.io/hello-blog-an-advanced-setup-of-ghost-and-docker-made-simple/
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
data-coderunner.io: | |
build: ./data-coderunner.io | |
container_name: "data-coderunner.io" | |
mariadb: | |
image: mariadb | |
container_name: "mariadb" | |
env_file: ./data-coderunner.io/env_coderunner.io | |
environment: | |
- TERM=xterm | |
ports: | |
- "127.0.0.1:3306:3306" | |
volumes_from: | |
- data-coderunner.io | |
blog-coderunner.io: | |
image: ghost | |
container_name: "blog-coderunner.io" | |
volumes: | |
- ./data-coderunner.io/config.js:/var/lib/ghost/config.js | |
volumes_from: | |
- data-coderunner.io | |
environment: | |
- VIRTUAL_HOST=coderunner.io | |
env_file: ./data-coderunner.io/env_coderunner.io | |
links: | |
- mariadb:mysql | |
nginx: | |
image: jwilder/nginx-proxy | |
container_name: "nginx" | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment