added development environment
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
|
||||
- ./app:/app
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: PHP.Dockerfile
|
||||
volumes:
|
||||
- ./app:/app
|
||||
mysql:
|
||||
image: mariadb:latest
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: 'secret'
|
||||
MYSQL_USER: 'grisu'
|
||||
MYSQL_PASSWORD: 'secret'
|
||||
MYSQL_DATABASE: 'tutorial'
|
||||
volumes:
|
||||
- mysqldata:/var/lib/mysql
|
||||
ports:
|
||||
- 3306:3306
|
||||
volumes:
|
||||
mysqldata: {}
|
||||
Reference in New Issue
Block a user