-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
39 lines (37 loc) · 853 Bytes
/
compose.dev.yml
File metadata and controls
39 lines (37 loc) · 853 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
30
31
32
33
34
35
36
37
38
39
services:
ring:
depends_on:
postgres:
condition: service_healthy
container_name: ring
build:
context: ./
ports:
- "3000:3000"
- "3001:3001"
restart: no
environment:
DATABASE_URL: "postgresql://postgres:postgres@host.docker.internal:5432/ring?schema=public"
env_file:
- src/.env
- src/.env.development.local
postgres:
container_name: ring-postgres
image: "postgres:15-alpine"
ports:
- "5432:5432"
restart: no
volumes:
- "ring-postgres-data:/var/lib/postgresql/data"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ring
healthcheck:
test: [CMD-SHELL, pg_isready]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
volumes:
ring-postgres-data: