Created
December 24, 2019 20:22
-
-
Save philss/e737c552787e0e97d52e2beb62b58fea to your computer and use it in GitHub Desktop.
Docker compose config with Elixir artifacts not being shared with host
This file contains 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 characters
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