Hello everyone, I’m trying to run a docker-compose.yml file in verdin mini, I just copied exactly the same example given by toradex and I’m trying to start it with docker compose up, but It is returning the error.
Could please help me ?
Hello everyone, I’m trying to run a docker-compose.yml file in verdin mini, I just copied exactly the same example given by toradex and I’m trying to start it with docker compose up, but It is returning the error.
Could please help me ?
Hi @V_D_ALMEIDA ,
Can you attach the exact docker-compose.yml example that you’ve used?
Best regards,
Lucas Akira
version: “2.4”
services:
ihmestufateste1:
container_name: ihmestufateste1
platform: linux/arm64 torizon/debian:2-bullseye
networks:
nodeestufateste1:
container_name: nodeestufateste1
platform: linux/arm64 torizon/debian:2-bullseye
networks:
networks:
backend:
internal: true
frontend:
internal: false
Lucas, these are the dockerfile I’ve used to create the images
HTML application
FROM nginx
LABEL version=“1.0.0” description=“Teste Linux-Toradex” maintainer=“Victor Davi Almeida victor.davi@hotmail.com”
RUN cd / && mkdir Arquivos && chmod 777 -R Arquivos/
COPY . /usr/share/nginx/html/
VOLUME /Arquivos/
EXPOSE 80
ENV API_URL=http://localhost:8000/api/
ENV API_BANCO=meu_site
WORKDIR /usr/share/nginx/html/
ENTRYPOINT [“/usr/sbin/nginx”]
CMD [“-g”, “daemon off;”]
Node.js Application
FROM node:16.15.1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app
EXPOSE 3000
CMD [ “npm”, “start” ]
In the verdin I want to run these two containers, and I want to show the HTML+ javascript app in the LVDS display.
I dont know exactly how can I construct a docker-compose to successfull update via Torizon OTA.
What I was trying to was mixing these two containers with the weston and kiosk
version: “2.4”
services:
weston:
image: torizon/weston-vivante:2
environment:
network_mode: host
volumes:
device_cgroup_rules:
#Stopped here
ihmestufateste1:
container_name: ihmestufateste1:latest
image: vdalmeida/ihmestufa
networks:
kiosk:
image: torizon/kiosk-mode-browser:2
security_opt:
The error message indicates that the kiosk
image can’t start because the healthcheck condition for it defined in the docker-compose.yml file fails.
It should go away as soon as all previous containers start successfully. That is, this should be gone if all your other docker-compose problems are solved.
Also, when outputting your file here please format your text with ctrl+e, that makes reading it much easier.
Best regards,
Lucas Akira