RSS Git Download  Clone
Raw Blame History
services:
  php-fpm:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: php-fpm-gitlist
    volumes:
      - ./:/app
      - ./git-test:/var/git
    environment:
      APP_ENV: development
      XDEBUG_CONFIG: "client_host=host.docker.internal client_port=9003"
      XDEBUG_MODE: debug
      PHP_IDE_CONFIG: "serverName=local.docker"
    extra_hosts:
      - "host.docker.internal:host-gateway"

  watch:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: watch-gitlist
    volumes:
      - ./:/app
    working_dir: /app
    command: bash -c "git config --system --add safe.directory '*' && npm run watch"
    depends_on:
      - php-fpm

  nginx:
    image: nginx:latest
    container_name: nginx-gitlist
    ports:
      - "8080:80"
    volumes:
      - ./:/app
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - php-fpm
    extra_hosts:
      - "host.docker.internal:host-gateway"

networks:
  default:
    driver: bridge