-
Update docker-compose.yml file and add the following lines:
service: # ... phpmyadmin: image: phpmyadmin/phpmyadmin ports: - "8080:80"
-
Visit: symfony.local:8080
-
Update docker-compose.yml file and add the following lines:
service: # ... redis: image: redis:alpine ports: - 6379:6379
-
Adapt your Symfony configuration file
# path/to/your/symfony-project/app/config/parameters.yml parameters: #... redis_host: redis
❓ Using SncRedis?
Your Symfony config file should be like this:
snc_redis:
clients:
default:
type: predis
alias: default
dsn: redis://%redis_host%
Access to redis-cli with:
# Redis commands
$ docker-compose exec redis redis-cli