Skip to content

Instantly share code, notes, and snippets.

@philss
Created December 24, 2019 20:22
Show Gist options
  • Save philss/e737c552787e0e97d52e2beb62b58fea to your computer and use it in GitHub Desktop.
Save philss/e737c552787e0e97d52e2beb62b58fea to your computer and use it in GitHub Desktop.
Docker compose config with Elixir artifacts not being shared with host
version: "3.3"
services:
db:
image: postgres:11.1-alpine
ports:
- "5432:5432"
app:
env_file: .env
build:
context: .
dockerfile: Dockerfile
ports:
- "4000:4000"
volumes:
- .:/app
- elixir-artifacts:/opt/elixir_artifacts
depends_on:
- db
environment:
MIX_DEPS_PATH: "/opt/elixir_artifacts/deps"
MIX_BUILD_PATH: "/opt/elixir_artifacts/_build"
volumes:
elixir-artifacts: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment