docs: Docker compose deployment
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
Ok. We will try to reproduce it first and get back to you as soon as possible.
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 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
Ok,Thank you for your suggestion. We are considering optimizing the deployment process.