Basic configuration/setup for Dockerized Symfony development
Setup
-
Add network interface alias for xDebug:
In Mac:
sudo ifconfig en0 alias 10.254.254.254 255.255.255.0
In Linux:
sudo ip addr add 10.254.254.254/24 brd + dev eth0 label eth0:1
where
eth0
is local network interface -
Build and run containers:
docker-compose build ... docker-compose up -d