{"id":20475416,"url":"https://github.com/setnemo/php","last_synced_at":"2026-03-19T16:02:30.574Z","repository":{"id":110588417,"uuid":"497364647","full_name":"setnemo/php","owner":"setnemo","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-09T17:43:57.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T00:29:42.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setnemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-28T16:01:10.000Z","updated_at":"2023-11-23T11:59:56.000Z","dependencies_parsed_at":"2024-04-09T17:41:37.902Z","dependency_job_id":"a8b54928-b55d-4362-8bbd-1e1b66556017","html_url":"https://github.com/setnemo/php","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/setnemo/php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setnemo","download_url":"https://codeload.github.com/setnemo/php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28813539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T15:15:56.749Z","updated_at":"2026-01-27T13:33:18.610Z","avatar_url":"https://github.com/setnemo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-fpm (v8.3.1) for Laravel projects\n\nBased on php:php:8.3.1-fpm-alpine3.18 + supervisor ```/etc/supervisor/conf.d/*.conf```\n\nDefault TZ = Etc/GMT+2\n\nHave to run crontab with next config\n```shell\n* * * * * /bin/bash -c \"if [ -f \\\"/dev/shm/supervisor.sock\\\" ] ; then echo skipping; else /usr/bin/supervisord -c /etc/supervisord.conf; fi;\"\n* * * * * /bin/bash -c \"if [ -f \\\"/var/www/html/supervisor-restart.pid\\\" ] ; then supervisorctl restart all \u0026\u0026 rm /var/www/html/supervisor-restart.pid; else sleep 45; fi;\"\n```\nAlso have additional entrypoint for additional bash scripts after run container\n```shell\nSTART_SCRIPT=/var/www/html/start.sh\nif [ -f \"$START_SCRIPT\" ] ; then\n    chmod +x $START_SCRIPT\n    bash $START_SCRIPT\nfi\n```\n## PHP Modules\n\nIn this image it contains following PHP modules:\n\n```\n# php -m\n[PHP Modules]\nbcmath\nCore\nctype\ncurl\ndate\ndom\nfileinfo\nfilter\nftp\ngd\nhash\niconv\nigbinary\nimap\nintl\njson\nlibxml\nmbstring\nmemcached\nmsgpack\nmysqli\nmysqlnd\nopenssl\npcre\nPDO\npdo_mysql\npdo_pgsql\npdo_sqlite\npgsql\nPhar\nposix\nrandom\nreadline\nredis\nReflection\nsession\nSimpleXML\nsoap\nsockets\nsodium\nSPL\nsqlite3\nstandard\ntokenizer\nxdebug\nxml\nxmlreader\nxmlwriter\nZend OPcache\nzip\nzlib\n\n[Zend Modules]\nXdebug\nZend OPcache\n```\n\n## Develop with this image\n\nAnother example to develop with this image for a **Laravel 9** project, you may modify the `docker-compose.yml` of your project.\n\nMake sure you have correct environment parameters set:\n\n```yaml\n# For more information: https://laravel.com/docs/sail\nversion: '3'\nservices:\n  nginx:\n    image: ghcr.io/setnemo/nginx:latest\n    environment:\n      WEBROOT: '/var/www/html/public'\n    ports:\n      - '${APP_PORT:-80}:80'\n    volumes:\n      - '.:/var/www/html'\n    environment:\n      GID: 1000\n      UID: 1000\n    networks:\n      - sail\n    depends_on:\n      - laravel\n  laravel:\n    image: ghcr.io/setnemo/php:latest\n    environment:\n      GID: 1000\n      UID: 1000\n      TZ: Europe/Kyiv\n    volumes:\n      - '.:/var/www/html'\n      - './supervisor/deploy.conf:/etc/supervisor/conf.d/deploy.conf:ro'\n      - './supervisor/schedule.conf:/etc/supervisor/conf.d/schedule.conf:ro'\n    networks:\n      - sail\n    depends_on:\n      - postgres\n      - redis\n  node:\n    image: ghcr.io/setnemo/node:latest\n    working_dir: /var/www/html\n    tty: true\n    ports:\n      - '${VITE_PORT:-5173}:5173'\n    volumes:\n      - ./:/var/www/html\n      - './supervisor/deploy.node.conf:/etc/supervisor/conf.d/deploy.node.conf:ro'\n  postgres:\n    image: postgres:9.5-alpine\n    volumes:\n      - \"sail-postgres:/var/lib/postgresql/data\"\n    environment:\n      - POSTGRES_USER=${DB_USERNAME}\n      - POSTGRES_PASSWORD=${DB_PASSWORD}\n      - POSTGRES_DB=${DB_DATABASE}\n    ports:\n      - \"${DB_PORT:-5432}:5432\"\n    networks:\n      - sail\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready\"]\n      interval: 10s\n      timeout: 5s\n      retries: 5\n  redis:\n    image: 'redis:alpine'\n    ports:\n      - '${REDIS_PORT:-6379}:6379'\n    volumes:\n      - 'sail-redis:/data'\n    networks:\n      - sail\n    healthcheck:\n      test: [\"CMD\", \"redis-cli\", \"ping\"]\n      retries: 3\n      timeout: 5s\nnetworks:\n  sail:\n    driver: bridge\nvolumes:\n  sail-postgres:\n    driver: local\n  sail-redis:\n    driver: local\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetnemo%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetnemo%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetnemo%2Fphp/lists"}