-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
36 lines (34 loc) · 793 Bytes
/
compose.yaml
File metadata and controls
36 lines (34 loc) · 793 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
services:
app:
build:
context: .
dockerfile: Dockerfile
target: ${ENV:-test}
args:
BUILD_ENV: ${ENV:-test}
container_name: og_catalog_${ENV:-test}
environment:
DB_HOST: db
ports:
- '4000:4000'
depends_on:
db:
condition: service_healthy
db:
image: postgres:16.3
container_name: og_catalog_db
environment:
POSTGRES_DB: og_catalog_${ENV:-test}
POSTGRES_USER: og_catalog_${ENV:-test}
POSTGRES_PASSWORD: og_catalog_${ENV:-test}
ports:
- '5432:5432'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U og_catalog_${ENV:-test}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: