Dev environment with Symfony and docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
645 B

version: '3.8'
services:
# mariadb:
# image: mariadb
# restart: on-failure
# environment:
# MYSQL_ROOT_PASSWORD: root_password
# MYSQL_USER: my_user
# MYSQL_PASSWORD: my_password
# MYSQL_DATABASE: my_database_name
nginx:
image: nginx:1.19-alpine
restart: on-failure
volumes:
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
ports:
- '80:80'
depends_on:
- php
volumes_from:
- php
php:
build:
context: .
dockerfile: docker/php/Dockerfile
restart: on-failure
volumes:
- '.:/usr/src/app'
user: 1000:1000