APIPark icon indicating copy to clipboard operation
APIPark copied to clipboard

docs: Docker compose deployment

Open ilyasKerbal opened this issue 11 months ago • 4 comments

Current State

While following the docker compose guide, I got the following error:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "/nsqd --data-path=/data": stat /nsqd --data-path=/data: no such file or directory: unknown

Here is the deployment for the apipark-nsq service:

  apipark-nsq:
    container_name: apipark-nsq
    image: nsqio/nsq:v1.3.0
    hostname: apipark-nsq
    privileged: true
    restart: always
    command:
      - /nsqd --data-path=/data
    ports:
      - 4150:4150
      - 4151:4151
    volumes:
      - ./var/lib/apipark/nsq:/data
    networks:
      - apipark

Desired State

Fix the error

ilyasKerbal avatar Jan 31 '25 20:01 ilyasKerbal

Ok. We will try to reproduce it first and get back to you as soon as possible.

Dot-Liu avatar Feb 07 '25 06:02 Dot-Liu

Please update the nsq service as follows

  apipark-nsq:
    container_name: apipark-nsq
    image: nsqio/nsq:v1.3.0
    hostname: apipark-nsq
    privileged: true
    restart: always
    command:
      - /nsqd
    ports:
      - 4150:4150
      - 4151:4151
    networks:
      - apipark

Dot-Liu avatar Feb 08 '25 08:02 Dot-Liu

@Dot-Liu Thank you, the problem is gone, but I cannot deploy APIPark yet. All the services are running and well configured, but I cannot access the APIPark from the specified port.

My recommendation is to improve the deployment page, it lacks context and description for the different steps.

Good luck

ilyasKerbal avatar Feb 08 '25 15:02 ilyasKerbal

Ok,Thank you for your suggestion. We are considering optimizing the deployment process.

Dot-Liu avatar Feb 10 '25 06:02 Dot-Liu