Public | Automated Build

Last pushed: 4 months ago
Short Description
Docker PHP 7 Nginx for Symfony app. This image is ready for MySQL, SQLite, PostgreSQL and MongoDB.
Full Description

docker-php-nginx-symfony

Docker PHP Nginx Symfony

This image is ready for MySQL, SQLite, PostgreSQL and MongoDB. Feel free to connect with your required database system.

Want to integrate it with MySql? Let's use Docker Compose.

Docker Compose Mysql example file

Create docker-compose.yml file as following:

web:
    image: vir7u4/docker-php-nginx-symfony
    volumes:
        - './project:/var/www'
    depends_on:
      - mysql

mysql:
    image: mysql
    environment:
        MYSQL_DATABASE: "symfony"
        MYSQL_USER: "root"
        MYSQL_ROOT_PASSWORD: "root"

Docker Compose MongoDB example file

Create docker-compose.yml file as following:

web:
  image: vir7u4/docker-php-nginx-symfony
  volumes:
    - './project:/var/www'
  depends_on:
    - mongo
mongo:
  image: mongo
Docker Pull Command
Owner
sergioortegagomez

Comments (0)