-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 652 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (29 loc) · 652 Bytes
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
services:
app:
build: '.'
ports:
- "4000:4000"
volumes:
- .:/opt/app
environment:
PG_URL: postgres:postgres@db
LIVE_ADMIN_DEV: 'true'
depends_on:
- db
command: mix dev
healthcheck:
test: curl --fail http://localhost:4000 || exit 1
interval: 10s
timeout: 10s
retries: 5
db:
environment:
POSTGRES_DB: phx_admin_dev
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
image: 'postgres:13-alpine'
tmpfs:
- /var/lib/postgresql/data
volumes:
- './dev/initdb:/docker-entrypoint-initdb.d'