Skip to content

Instantly share code, notes, and snippets.

@inblank
Last active August 2, 2016 18:35
Show Gist options
  • Save inblank/c27589aae46d317a6a478ec5ba20e4b6 to your computer and use it in GitHub Desktop.
Save inblank/c27589aae46d317a6a478ec5ba20e4b6 to your computer and use it in GitHub Desktop.
Minimal docker-compose config file
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
- mail
- 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"
@inblank
Copy link
Author

inblank commented Jul 29, 2016

Site scripts must be placed into the site folder.
Scripts for the document's root must be placed into the site/html folder.

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