forked from thechangelog/changelog.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.08 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
37
38
39
40
41
42
43
44
45
version: "3.6"
services:
db:
image: postgres:9.5.4
# https://docs.docker.com/compose/compose-file/#expose
expose:
- "5432"
# https://docs.docker.com/compose/compose-file/#volumes
volumes:
- postgres:/var/lib/postgresql/data
app:
build:
context: ./
dockerfile: docker/Dockerfile.development
environment:
DB_URL: "ecto://postgres@db:5432/changelog_dev"
VIRTUAL_HOST: &host "${HOST:-localhost}"
HOST: *host
# https://docs.docker.com/compose/compose-file/#ports
ports:
- "4000:4000"
volumes:
- build:/app/_build
- ./assets:/app/assets
- node_modules:/app/assets/node_modules
- ./config:/app/config
- deps:/app/deps
- ./lib:/app/lib
- ./priv:/app/priv
- ./script:/app/script
- ./test:/app/test
- ./.all-contributorsrc:/app/.all-contributorsrc
- ./.credo.exs:/app/.credo.exs
- ./.iex.exs:/app/.iex.exs
- ./mix.exs:/app/mix.exs
- ./mix.lock:/app/mix.lock
depends_on:
- db
volumes:
postgres:
build:
deps:
node_modules: