Skip to content

Instantly share code, notes, and snippets.

@hevertonfreitas
Created December 5, 2016 13:34
Show Gist options
  • Save hevertonfreitas/bd1856817d9ceb28106323de45fd94bb to your computer and use it in GitHub Desktop.
Save hevertonfreitas/bd1856817d9ceb28106323de45fd94bb to your computer and use it in GitHub Desktop.
nginx:
image: nginx
ports:
- "80:80"
links:
- phpfpm
volumes:
- ./public:/usr/share/nginx/html
- ./nginx/default:/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"
links:
- mysql
volumes:
- ./public:/usr/share/nginx/html
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: admin
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- mysql
ports:
- 8183:80
environment:
MYSQL_USERNAME: admin
MYSQL_ROOT_PASSWORD: admin
PMA_ARBITRARY: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment