services: api: build: context: . dockerfile: docker/Dockerfile.api volumes: - .:/app - data:/app/data depends_on: - redis nginx: image: nginx:alpine ports: - "8080:80" volumes: - .:/app - ./docker/nginx.conf:/etc/nginx/conf.d/default.conf depends_on: - api worker: build: context: . dockerfile: docker/Dockerfile.php volumes: - .:/app - /var/log:/host/logs:ro - data:/app/data depends_on: - redis command: ["php", "bin/consume", "--daemon"] redis: image: redis:7-alpine volumes: data: