-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (35 loc) · 1.24 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "3.8"
services:
api:
env_file: ${DOT_ENV_FILE:-.env-none}
# Ensure specific environment variables are ALWAYS available.
environment:
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:[email protected]/eps_dev}
- PORT=${PORT:-4000}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-1vd1kSjcDoIt0hmoJMCRwM7Qx8y2EyhYESCcW+ytSXQ=}
build:
context: ./
dockerfile: Dockerfile-dev
args:
MIX_ENV: ${MIX_ENV:-dev}
elixirVersion: ${ELIXIR_VERSION:-1.11.3}
secret_key_base: ${SECRET_KEY_BASE:-ZnfvXfq91z5om0lWqBxlTce32/0vJqReJ8vngKJAtx8hyPIJpKhcZfDt//34oSAw}
command:
- "sh"
- "-c"
- "if [ ${MIX_SETUP:-} ]; then mix ecto.setup; else echo 'No setup requested.'; fi; if [ ${NO_AUTO_START:-} ]; then echo 'No auto start requested.'; tail -f /dev/null; else mix phx.server; fi"
container_name: eps-api-elixir-dev
image: eps-api-elixir:dev
ports:
- ${PORT:-4000}:${PORT:-4000}
volumes:
- .:/app:delegated
- ~/.gitconfig:/root/.gitconfig:delegated
- ~/.ssh:/root/.ssh:delegated
- eps-api-elixir-root-vol:/root:delegated
logging:
options:
max-size: "10m"
max-file: "3"
volumes:
eps-api-elixir-root-vol: