Skip to content

mnishiguchi/phx-docker-compose-new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir Phoenix Docker Compose generator

A mix phx.new wrapper that generates a new Phoenix app and basic development environment with Docker Compose and Livebook.

Getting started

phx-docker-compose-new requires a few programs on your system.

git version
docker --version
docker compose version

You can download phx-docker-compose-new from Github.

git clone https://github.com/mnishiguchi/phx-docker-compose-new.git ~/.phx-docker-compose-new

Here is one way to make phx-docker-compose-new available in your terminal.

alias phx-docker-compose-new=~/.phx-docker-compose-new/phx-docker-compose-new.sh

Create a Phoenix app running phx-docker-compose-new. For possible options, refer to Phoenix documentation.

phx-docker-compose-new sample_phx_app --no-assets --no-gettext --no-mailer

Change directory to your app and start Phoenix endpoint.

cd sample_phx_app

bin/start

Open the app from your browser:

Here are some other commands:

  • Stop Phoenix endpoint with bin/stop
  • IEx into your running app with bin/console
  • Check logs with bin/logs