forked from siwapp/siwapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 900 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
---
services:
siwapp_db:
image: postgres:13.5-alpine
environment:
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -p 5432"]
interval: 15s
timeout: 25s
retries: 5
start_period: 100s
volumes:
- siwapp_postgres_volume:/var/lib/postgresql/data
ports:
- "5432:5432"
siwapp:
build:
context: .
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
dockerfile: docker/Dockerfile
command: elixir -S mix phx.server
depends_on:
siwapp_db:
condition: service_healthy
entrypoint: ["./docker/entrypoint.sh"]
environment:
DB_HOST: siwapp_db
DB_PORT: 5432
MIX_ENV: dev
ports:
- "4010:4010"
ulimits:
nofile: 65535
volumes:
- .:/app
volumes:
siwapp_postgres_volume:
name: siwapp_postgres_volume