Skip to content

Commit

Permalink
chore: Mount the _build directory as well, run mix.compile in the b…
Browse files Browse the repository at this point in the history
…uild step, and update the README
  • Loading branch information
joshlarson committed Oct 2, 2024
1 parent b08ccfd commit fff1f56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ For details on environment configuration, including optional variables, see
The easiest way to develop MBTA dotcom is to use Docker Compose.
```
docker compose -f deploy/dev.yml up -d
docker compose -f deploy/dev.yml up -d --build
```
This will set up Redis in cluster mode and run two versions of Dotcom with nginx load balancing requests between them.
Expand Down
2 changes: 2 additions & 0 deletions deploy/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
timeout: 10s
volumes:
- ../:/app
- /app/_build
- /app/deps
- /app/assets/node_modules
networks:
Expand Down Expand Up @@ -85,6 +86,7 @@ services:
timeout: 10s
volumes:
- ../:/app
- /app/_build
- /app/deps
- /app/assets/node_modules
networks:
Expand Down
1 change: 1 addition & 0 deletions deploy/dotcom/dev/1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN mix local.hex --force
RUN mix local.rebar --force

RUN mix deps.get
RUN mix deps.compile
RUN npm install --prefix assets --omit=optional --audit false --fund false --loglevel verbose --ignore-scripts

CMD elixir --sname dotcom1 --cookie foobarbaz -S mix phx.server
1 change: 1 addition & 0 deletions deploy/dotcom/dev/2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN mix local.hex --force
RUN mix local.rebar --force

RUN mix deps.get
RUN mix deps.compile
RUN npm install --prefix assets --omit=optional --audit false --fund false --loglevel verbose --ignore-scripts

CMD elixir --sname dotcom2 --cookie foobarbaz -S mix phx.server

0 comments on commit fff1f56

Please sign in to comment.