This post require to know how write and read the .yaml syntaxe only : easy ! ;)

What we need ?

  • A terminal with php on your local machine

What we use ? automate !

This is the official website of automate : https://automate-deployer.com/

Automate

It’s time to start !

First, the .automate.yml file

First, add the .automate.ymlfile at the root of your project (not the public directory), write this lines :

repository: git@github.com:romaricp/kit-starter-symfony-4-docker.git
platforms:
development:
default_branch: master
max_releases: 2
servers:
dddv-server:
host: 10.128.12.12
user: dev
password: %dev_password%
path: /home/wwwroot/sf4
preprod:
default_branch: preprod
max_releases: 2
servers:
pddv-server:
host: 10.128.12.13
user: dev
password: %preprod_password%
path: /home/wwwroot/sf4
shared_files:
- .env …


If you want to start a new project with Symfony 4 and Docker, this post is for you ! #OhYeah !

You can get this template directly here :

git clone https://github.com/romaricp/kit-starter-symfony-4-docker.git

or follow this tutorial. :)

First : Init your Docker

You have to install Docker on your local desktop.

  • Go to your project directory and create the `docker-compose.yml` file :
mkdir /your/path/project
cd /your/path/project
vim docker-compose.yml

and copy this inside :

version: '3'
services:
apache:
build: .docker/apache
container_name: sf4_apache
ports…

Romaric Paul

Developer Web and mainly Symfony framework addict — https://romaricp.github.io/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store