-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
60 lines (56 loc) · 1.06 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.8"
services:
medirepo:
stdin_open: true
tty: true
image: medirepo
command: iex -S mix phx.server
restart: unless-stopped
ports:
- "4000:4000"
- "4001:4001"
volumes:
- .:/app
- medirepo_build:/app/_build/
- medirepo_deps:/app/deps
depends_on:
- db
networks:
- medirepo
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
db:
image: postgres:14.5
container_name: medirepo_db
environment:
POSTGRES_PASSWORD: medirepo
POSTGRES_USER: medirepo
POSTGRES_DB: medirepo_dev
ports:
- "5432:5432"
restart: always
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
]
interval: 10s
timeout: 5s
retries: 3
networks:
- medirepo
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
networks:
medirepo:
name: medirepo
volumes:
medirepo_build:
medirepo_deps: