Last active
August 2, 2016 18:35
-
-
Save inblank/c27589aae46d317a6a478ec5ba20e4b6 to your computer and use it in GitHub Desktop.
Minimal docker-compose config file
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
version: "2" | |
services: | |
nginx: | |
image: inblank/nginx-proxy | |
links: | |
- php:apache | |
ports: | |
- "80:80" | |
volumes: | |
- ./site:/usr/share/nginx | |
php: | |
image: inblank/php7 | |
links: | |
- db | |
- memcached | |
volumes: | |
- ./site:/var/www | |
memcached: | |
image: memcached:alpine | |
db: | |
image: mysql:5.6 | |
# environment: | |
# MYSQL_ROOT_PASSWORD: rootpass | |
# MYSQL_DATABASE: database | |
# MYSQL_USER: database_user | |
# MYSQL_PASSWORD: database_pass | |
# volumes: | |
# - ./db/mysql:/docker-entrypoint-initdb.d | |
mysql-admin: | |
image: phpmyadmin/phpmyadmin | |
links: | |
- db:db | |
ports: | |
- "8080:80" | |
mail: | |
image: inblank/local-mail | |
ports: | |
- "25:25" | |
- "143:143" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Site scripts must be placed into the site folder.
Scripts for the document's root must be placed into the site/html folder.