Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.12 KB

custom.md

File metadata and controls

60 lines (46 loc) · 1.12 KB

How to customise this stack

Add PHPMyAdmin

  1. Update docker-compose.yml file and add the following lines:

    service:
        # ...
        phpmyadmin:
            image: phpmyadmin/phpmyadmin
            ports:
                - "8080:80"
  2. Visit: symfony.local:8080

Add Redis

  1. Update docker-compose.yml file and add the following lines:

    service:
        # ...
        redis:
            image: redis:alpine
            ports:
                - 6379:6379
  2. 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