heimir-sverrisson / elixir-composed-devcontainer

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Elixir 67.4%Language:CSS 20.0%Language:HTML 5.6%Language:Dockerfile 4.3%Language:JavaScript 2.7%