services:
  php:
    image: icontainer/php:${PHP_VERSION}
    container_name: ${CONTAINER_NAME}
    restart: always
    networks:
      - icontainer-network
    volumes:
      - ${PANEL_WEBSITE_DIR}:/www/
      - ./conf/php.ini:/usr/local/etc/php/php.ini
      - ./conf/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
      - ./log:/var/log/php
      - ./composer:/tmp/composer
      - ./extensions:/php/extensions
    ports:
      - 127.0.0.1:${PANEL_APP_PORT_HTTP}:9000
    labels:
      createdBy: "icontainer"
networks:
  icontainer-network:
    external: true