Skip to content

A project using VS Code devcontainer and docker-compose for an Elixir, Phoenix, Node and PostgreSQL stack

Notifications You must be signed in to change notification settings

heimir-sverrisson/elixir-composed-devcontainer

Repository files navigation

Dockerized Elixir, Phoenix, Node and PostgreSQL

This project is a test setup for the above stack, set up in a way to be able to run the whole thing as a devcontainer and remote into it from VS Code. This setup allows for running the Elixir/Erlang debugger inside the container.

This code was hacked from John Zukowski's github project, that uses a single Dockerfile to run Elixir. This code uses Docker Compose to incorporate a separate PostgreSQL database container. John's project can be found at https://github.com/jomazu/elixir-devcontainer

Learn more about the VS Code setup

Todo

A tutorial to make the Todo Phoenix application is found at: https://serokell.io/blog/introduction-to-phoenix

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

A project using VS Code devcontainer and docker-compose for an Elixir, Phoenix, Node and PostgreSQL stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published