Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Frojd/phoenix-deploy-test

Repository files navigation

Phoenix with docker lab

This is a example project that includes:

  • Phoenix and Elixir with Postgres
  • Configuration management with conform
  • Deployment with destillery and ansistrano (through a separate docker container)
  • Nginx example
  • Circle 2.0 build example
  • Migrations

Clean install

  1. Copy configuration
cp docker/config/web.example.env docker/config/web.env
cp docker/config/db.example.env docker/config/db.env
  1. Run: docker-compose up
  2. Done. Visit localhost:4000

Tests

  • docker-compose run --rm web test

Local deployment with ansistrano

Building release:

docker-compose exec web bash -c "MIX_ENV=prod mix release --env=prod"

Deploying to local webserver:

dc run --rm deploy ansible-playbook deploy.yml -i stages/local

TODO

  • Extend config value list (with log destination among others)
  • Extend env list to include cookie signage
  • Look into asset bundling
  • Investigate CI builds
  • Research best approach for media handling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published