GithubHelp home page GithubHelp logo

benjamindburke / phoenix-umbrella-docker-starter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 73 KB

Are you struggling to put your Phoenix umbrella application inside of a Docker container? Look no further!

License: MIT License

Dockerfile 4.65% Elixir 65.72% CSS 19.77% JavaScript 2.66% HTML 4.50% Shell 2.56% Batchfile 0.16%

phoenix-umbrella-docker-starter's Introduction

Hello.Umbrella

Have you ever struggled to containerize a Phoenix umbrella application?

Me too!

That's why I created this Phoenix Docker Starter application. Please feel free to fork the code or copy the configuration you need to configure your own Phoenix Docker swarm.

Are you looking for a regular Phoenix app instead?

That's okay, not everyone uses or likes umbrella applications. I've got you covered! Check out my non-umbrella branch of the project here!

https://github.com/benjamindburke/phoenix-umbrella-docker-starter/tree/non-umbrella

How to use HelloWeb

First, add your own application secrets to the files in docker-local/db.env and docker-local/dev.env.

Use these three commands to build the hello_web Docker service locally:

  1. mix deps.get
    • We need the deps locally so Phoenix can generate a secure secret: mix phx.gen.secret
    • You should change your SECRET_KEY_BASE in docker-compose.yml but it isn't required for local development.
  2. docker compose build
  3. docker compose up

Now you can visit localhost:4000 from your browser.

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

Learn more

phoenix-umbrella-docker-starter's People

Contributors

benjamindburke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.