version: "3.1"

services:
  webserver:
    image: nginx:alpine
    working_dir: /application
    volumes:
      - ..:/application
      - ./webserver/nginx.conf:/etc/nginx/conf.d/default.conf
    ports:
      - "8000:80"

  php-fpm:
    environment:
      - TERM_PROGRAM=Hyper  # force colors for the symfony dumper
    build:
      context: php-fpm
    working_dir: /application
    volumes:
      - ..:/application
      - ./php-fpm/php-ini-overrides.ini:/etc/php/7.3/fpm/conf.d/99-overrides.ini
      - ./php-fpm/php-fpm-overrides.conf:/etc/php/7.3/fpm/pool.d/z-overrides.conf

  redis:
    image: "redis"

  redis-commander:
    image: "rediscommander/redis-commander"
    environment:
      - REDIS_HOST=redis
    ports:
      - "8101:8081"
