Skip to content

Instantly share code, notes, and snippets.

@dixonsatit
Created September 6, 2016 06:12
Show Gist options
  • Save dixonsatit/0f4817eb1e2bfdf8cdea04126fe5643e to your computer and use it in GitHub Desktop.
Save dixonsatit/0f4817eb1e2bfdf8cdea04126fe5643e to your computer and use it in GitHub Desktop.
docker compose php mysql
version: '2'
services:
php:
image: php:7-apache
container_name: lemp_php7_apache
restart: always
volumes:
- ./html/:/var/www/html
ports:
- 80:80
db:
image: mariadb:latest
container_name: lemp_mariadb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=123132123
- MYSQL_DATABASE=lemp_db
- MYSQL_USER=lemp
- MYSQL_PASSWORD=123456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment