- Install docker (https://docs.docker.com/engine/install/) and docker-compose
- Create
.env
file in the root directory and add your environment variable to the following
DATABASE_URL=postgres://postgres:postgres@db:5432/peta_stack_example_dev
SECRET_KEY_BASE=YOUR_SECRET_KEY_BASE
You can generate secret key by running: mix phx.gen.secret
- Execute command below in the shell
`$ docker-compose up
- Navigate to localhost:4001 in the browser