D
Dokploy13mo ago
Sizoune

Try to deploy Docker image app

hi im trying to deploy this app as a cctv server https://github.com/bluenviron/mediamtx?tab=readme-ov-file#docker-image (i also add custom command to enable some config in the app) this is how i setup in my dokploy like in the images i attach. the problem is the container is not running, it only created it. Is there any wrong step ?
GitHub
GitHub - bluenviron/mediamtx: Ready-to-use SRT / WebRTC / RTSP / RT...
Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams. - bluenviron/mediamtx
docker image
custom command *to enable some config in the server
created docker image
18 Replies
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
Hello , I will try to install later and will tell you if was working
Sizoune
SizouneOP13mo ago
thanks, can try this command to enable the API , and access it through port 9997 docker run --rm -it -e MTX_API=yes -e MTX_APIADDRESS=0.0.0.0:9997 --name cctv_server -d bluenviron/mediamtx:latest
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
In my case is working Put this command on NixPacks In env
Sizoune
SizouneOP13mo ago
do i need to expose port to access that API ? because i still cant access port 9997
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
Yes And if you expose port need to rebuild project
Sizoune
SizouneOP13mo ago
i already add expose ports, domain and rebuild the project, but i still cant access the API
No description
No description
this is working API
this is what i get when i open the domain
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
Logs can I see?
Sizoune
SizouneOP13mo ago
in the logs i also didnt see the api running in 9997
No description
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
Deployment logs ?
Sizoune
SizouneOP13mo ago
No description
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
Enviroment?
Sizoune
SizouneOP13mo ago
oh nvm, i wrong set the env --, btw thanks for the fast response 😄
Sizoune
SizouneOP13mo ago
No description
Sizoune
SizouneOP13mo ago
so how can i remove redundant container, ? do i need to enable daily clean up ?
Sizoune
SizouneOP13mo ago
ok thanks again
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
You are Welcome

Did you find this page helpful?