-
-
Save randito/65bba184eb8c631646ed15b48e507d63 to your computer and use it in GitHub Desktop.
Revisions
-
juanpabloaj revised this gist
Mar 3, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ # docker-compose up -d # docker-compose exec dev bash # mix phx.new new_project # in new_project/config/dev.exs replace hostname: "localhost" to hostname: "db", # cd new_project && mix ecto.create && mix phx.server version: '3' services: dev: -
juanpabloaj revised this gist
Mar 3, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,7 @@ USER pho # install the Phoenix Mix archive RUN mix local.hex --force && \ mix local.rebar --force && \ mix archive.install hex phx_new --force ENV HOME /home/pho -
juanpabloaj revised this gist
Mar 3, 2020 . 2 changed files with 8 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ FROM elixir:slim # See https://hexdocs.pm/phoenix/installation.html#node-js-5-0-0 RUN apt-get update -y && \ apt-get install -y curl git && \ curl -sL https://deb.nodesource.com/setup_13.x | bash - && \ apt-get install -y inotify-tools nodejs WORKDIR /code @@ -14,8 +14,7 @@ RUN useradd -c 'phoenix user' -m -d /home/pho -s /bin/bash pho && \ USER pho # install the Phoenix Mix archive RUN mix local.hex --force && \ mix archive.install hex phx_new --force ENV HOME /home/pho This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ # docker-compose up -d # docker-compose exec dev bash # mix phx.new new_project version: '3' services: dev: @@ -10,6 +13,8 @@ services: - 4000:4000 stdin_open: true tty: true depends_on: - db db: image: postgres -
juanpabloaj revised this gist
Mar 3, 2020 . 2 changed files with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,4 +18,4 @@ RUN mix archive.install --force https://github.com/phoenixframework/archives/raw mix local.hex --force \ && mix local.rebar --force ENV HOME /home/pho This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,11 +4,12 @@ services: build: context: . dockerfile: Dockerfile volumes: - .:/code ports: - 4000:4000 stdin_open: true tty: true db: image: postgres @@ -17,4 +18,4 @@ services: POSTGRES_PASSWORD: postgres volumes: phoenix_code: -
juanpabloaj revised this gist
Aug 2, 2019 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,11 @@ FROM elixir:slim # install Node.js (>= 8.0.0) and NPM in order to satisfy brunch.io dependencies # See https://hexdocs.pm/phoenix/installation.html#node-js-5-0-0 RUN apt-get update -y && \ apt-get install -y curl git && \ curl -sL https://deb.nodesource.com/setup_8.x | bash - && \ apt-get install -y inotify-tools nodejs WORKDIR /code -
juanpabloaj created this gist
Oct 26, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ FROM elixir # install Node.js (>= 8.0.0) and NPM in order to satisfy brunch.io dependencies # See https://hexdocs.pm/phoenix/installation.html#node-js-5-0-0 RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install -y inotify-tools nodejs WORKDIR /code RUN useradd -c 'phoenix user' -m -d /home/pho -s /bin/bash pho && \ chown -R pho.pho /code USER pho # install the Phoenix Mix archive RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phx_new.ez && \ mix local.hex --force \ && mix local.rebar --force ENV HOME /home/pho This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ version: '3' services: dev: build: context: . dockerfile: Dockerfile privileged: true volumes: - .:/code ports: - 4000:4000 db: image: postgres restart: always environment: POSTGRES_PASSWORD: postgres volumes: phoenix_code: