Skip to content

Instantly share code, notes, and snippets.

@totaku
Created August 1, 2017 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save totaku/7e5167e8bf2353289aa16a8e99435b2f to your computer and use it in GitHub Desktop.
Save totaku/7e5167e8bf2353289aa16a8e99435b2f to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
image: nginx:latest
restart: always
ports:
- "80:80"
volumes:
- ./conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./logs/nginx-error.log:/var/log/nginx/error.log
- ./logs/nginx-access.log:/var/log/nginx/access.log
phpfpm:
image: php:fpm
ports:
- "9000:9000"
volumes:
- ./public_html:/usr/share/nginx/html
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: password
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- mysql:mysql
ports:
- 8183:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment