Skip to content

KvnOnWeb/docker-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker starter for symfony

Configuration

  • php-fpm (PHP 7.2)
  • nginx
  • composer
  • mariadb

Installation

# Server configuration

Before executing any command, go to the directory docker/nginx/ and create the file app.conf, a configuration example is provided with app.conf.dist.

In your app.conf, replace "symfony.dev" with your project url and edit hosts file to get named access to the web server:

sudo vi /etc/hosts

Add the following line with your project url instead of "symfony.dev" :

127.0.0.1 symfony.dev

Build the docker containers

# Fresh start

The first time, use the following command line :

./build

This will delete old instances, download if necessary and install new containers.

# Restart previous containers

Use the following command line :

./up

# Containers configuration

In the build and up script, every container is prefixed with "docker9", this can be changed, this prevents other docker configuration to override container with the same name.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages