HUB
Sign inSign up

brnshkr/forge-compose-php-worker-dev:0.0.1-alpha.1

Manifest digest

sha256:7fdffdde0d1d345d5ed4cfa42e7f44edd5a4ce24fdbb6c2571af586965ca872a

Last pushed

4 days by brnshkr

Type

Compose

Manifest digest

sha256:7fdffdde0d1d345d5ed4cfa42e7f44edd5a4ce24fdbb6c2571af586965ca872a

Compose file content

services:
  php-worker:
    extends:
      file: ./base.yaml
      service: base
    restart: no
    image: "${FORGE_APP_DEV_IMAGE:-\
      ${FORGE_IMAGE_NAMESPACE:-\
      ${FORGE_NAMESPACE:?Set it to the namespace of Forge's images and fragments, e.g. `docker.io/brnshkr`.}}\
      /${FORGE_APP_DEV_IMAGE_NAME:-${FORGE_IMAGE_NAME:-forge}}\
      :${FORGE_TAG:?Set `FORGE_TAG` and `FORGE_APP_DEV_IMAGE_DIGEST`, or `FORGE_APP_DEV_IMAGE`.}-app-dev\
      @${FORGE_APP_DEV_IMAGE_DIGEST:?Set `FORGE_TAG` and `FORGE_APP_DEV_IMAGE_DIGEST`, or `FORGE_APP_DEV_IMAGE`.}}"
    command: >-
      ${PHP_WORKER_COMMAND:-bin/console messenger:consume
      ${MESSENGER_TRANSPORTS:?Set it to the transports to consume, e.g. `async scheduler_default`.}
      --time-limit=${MESSENGER_TIME_LIMIT:-3600}
      --memory-limit=${MESSENGER_MEMORY_LIMIT:-128M}}
    working_dir: /app
    user: ${HOST_UID:-1000}:${HOST_GID:-1000}
    mem_limit: ${PHP_WORKER_DEV_CONTAINER_MEMORY_LIMIT:-${PHP_WORKER_CONTAINER_MEMORY_LIMIT:-512m}}
    pids_limit: ${PHP_WORKER_DEV_CONTAINER_PIDS_LIMIT:-${PHP_WORKER_CONTAINER_PIDS_LIMIT:-512}}
    environment:
      LANG: ~
      LC_ALL: ~
      PHP_IDE_CONFIG: ~
      TZ: ~
      XDEBUG_CONFIG: ~
      XDEBUG_MODE: ~
      XDG_CACHE_HOME: /app/.cache/xdg.cache
      XDG_CONFIG_HOME: /app/.cache/xdg.cache
      XDG_DATA_HOME: /app/.cache/xdg.cache
    healthcheck:
      test:
        - CMD-SHELL
        - ls -A /app | grep -q .
      interval: 10s
      timeout: 3s
      retries: 1
      start_period: 10s
      start_interval: 1s
    tmpfs:
      - /tmp:rw,nosuid,nodev,size=512m
      - /run:rw,nosuid,nodev,size=32m
    volumes:
      - ${HOST_APP_DIR:-${PWD}}:/app:rw
services:
  base:
    restart: unless-stopped
    logging:
      driver: local
    init: true
    read_only: true
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true

Docker commands

docker compose -f oci://brnshkr/forge-compose-php-worker-dev:0.0.1-alpha.1 up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

No images found
No images were found in the Compose file.