Is this an anti-pattern for coder?

I’m exploring Coder for my team members and I’m wondering if creating a docker template that install Postgres and Redis would be an anti-pattern mainly because of the infrastructures required to run the services.
12 Replies
Codercord
Codercord2mo ago
<#1287029232668770406>
Category
Help needed
Product
Coder OSS (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys2mo ago
hey @Faruq Alli-Balogun, it is not really an anti-pattern as Coder is a bit of a specific workflow you usually wouldn't want to pack all your microservices into one image, but in the case of Coder it does make sense on the other hand, if you don't like that and/or you think it's better to use upstream images, you can add postgres and redis containers to your template and wire those up with the main workspace using a virtual network
Faruq Alli-Balogun
Faruq Alli-BalogunOP2mo ago
Thank you @Phorcys for your answer I used Render’s one click installation to setup Coder. Apparently render does not install docker, how do I install docker?
Phorcys
Phorcys2mo ago
Docker Documentation
Install
Learn how to choose the best method for you to install Docker Engine. This client-server application is available on Linux, Mac, Windows, and as a static binary.
Faruq Alli-Balogun
Faruq Alli-BalogunOP2mo ago
So I can add it in my docker file right? Render does not allow users install docker but I’m wondering why it’s not working when the deployment runtime is basically docker.
Phorcys
Phorcys2mo ago
Coder needs access to the Docker socket so it's likely that you do not have access to it within the Coder instance @Atif any ideas?
Faruq Alli-Balogun
Faruq Alli-BalogunOP2mo ago
Exactly what I meant
Atif
Atif2mo ago
Render is running Coder as a container so it's not possible to install docker. You know that it's not very straightforward to install docker in docker.
Faruq Alli-Balogun
Faruq Alli-BalogunOP2mo ago
Thank you @Atif
Atif
Atif2mo ago
You can link to an external remote docker host running on a VM though, See https://coder.com/docs/platforms/docker#using-remote-docker-host for details
Docker - Coder Docs
Set up Coder with Docker
From An unknown user
From An unknown user
Phorcys
Phorcys2mo ago
closing this issue :-)
Codercord
Codercord2mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server