forked from supabase/realtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 984 Bytes
/
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
46
47
48
49
50
51
52
53
54
55
version: "3"
services:
app:
image: hadrian_dev
build:
context: .
args:
MIX_ENV: dev
env_file: .env
depends_on:
- postgres
volumes :
- .:/app
- dev_deps:/app/deps
- dev_build:/app/_build
command:
mix ecto.create && mix ecto.migrate && iex -S mix
test:
image: hadrian_test
build:
context: .
args:
MIX_ENV: test
env_file: .env
depends_on:
- postgres
volumes:
- .:/app
- test_build:/app/_build
- test_deps:/app/deps
command:
mix test
postgres:
image: postgres:12.2
container_name: hadrian_db
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: hadrian
command:
- "postgres"
- "-c"
- "wal_level=logical"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
dev_deps:
dev_build:
test_deps:
test_build: