start_sf5_project/docker-compose.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2017-12-27 19:03:06 +00:00
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
mysql:
image: mysql:8.0
container_name: docker-symfony4-mysql
working_dir: /application
volumes:
- .:/application
environment:
- MYSQL_ROOT_PASSWORD=dbrootpw
- MYSQL_DATABASE=docker_symfony4
- MYSQL_USER=dbuser
- MYSQL_PASSWORD=dbpw
ports:
- "8002:3306"
webserver:
image: nginx:alpine
container_name: docker-symfony4-webserver
working_dir: /application
volumes:
- .:/application
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
php-fpm:
build: phpdocker/php-fpm
container_name: docker-symfony4-php-fpm
working_dir: /application
volumes:
- .:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini