-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdev.yml
More file actions
80 lines (75 loc) · 1.77 KB
/
dev.yml
File metadata and controls
80 lines (75 loc) · 1.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.9"
services:
gateway:
build:
context: ../..
dockerfile: apps/gateway-server/Dockerfile
ports:
- "3100:3100"
environment:
SINT_PORT: "3100"
SINT_STORE: postgres
SINT_CACHE: redis
DATABASE_URL: postgresql://sint:sint@postgres:5432/sint
REDIS_URL: redis://redis:6379
SINT_LOG_LEVEL: info
SINT_WS_ALLOW_QUERY_API_KEY: "true"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3100/v1/health"]
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
dashboard:
build:
context: ../..
dockerfile: apps/dashboard/Dockerfile
ports:
- "3201:3201"
depends_on:
gateway:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3201/"]
interval: 15s
timeout: 5s
retries: 3
start_period: 5s
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: sint
POSTGRES_PASSWORD: sint
POSTGRES_DB: sint
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ../../packages/persistence/migrations:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sint -d sint"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
volumes:
pgdata:
redisdata: