-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
53 lines (50 loc) · 1.25 KB
/
compose.dev.yaml
File metadata and controls
53 lines (50 loc) · 1.25 KB
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
services:
db:
image: postgres:18-alpine
environment:
POSTGRES_DB: ${DB_NAME:-myfi}
POSTGRES_USER: ${DB_USER:-myfi}
POSTGRES_PASSWORD: ${DB_PASSWORD:-myfi}
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "${DB_PORT:-5433}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-myfi} -d ${DB_NAME:-myfi}"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: ./services/myfi-api
dockerfile: Dockerfile
environment:
DATABASE_URL: postgres://${DB_USER:-myfi}:${DB_PASSWORD:-myfi}@db:5432/${DB_NAME:-myfi}
PORT: "4000"
NODE_ENV: development
CORS_ALLOWED_ORIGINS: "https://localhost:3000"
AUTH_JWKS_URL: ${AUTH_JWKS_URL}
depends_on:
db:
condition: service_healthy
ports:
- "4000:4000"
volumes:
- ./services/myfi-api/src:/app/src
app:
build:
context: ./services/myfi-app
dockerfile: Dockerfile
environment:
NODE_ENV: development
PORT: "3000"
VITE_API_URL: http://api:4000
VITE_API_GRAPHQL_URL: http://api:4000/graphql
depends_on:
- api
ports:
- "3000:3000"
volumes:
- ./services/myfi-app/src:/app/src
volumes:
db_data: