-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
69 lines (65 loc) · 1.44 KB
/
compose.yml
File metadata and controls
69 lines (65 loc) · 1.44 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
name: pulse
services:
db:
image: timescale/timescaledb:latest-pg17
restart: unless-stopped
environment:
POSTGRES_USER: pulse
POSTGRES_PASSWORD: pulse
POSTGRES_DB: pulse
ports:
- "5432:5432"
volumes:
- pgdata:/home/postgres/pgdata/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pulse"]
interval: 5s
timeout: 3s
retries: 5
labels:
pulse.proxy: false
api:
build:
context: .
dockerfile: api/Dockerfile
restart: unless-stopped
environment:
PULSE_DB_URL: postgres://pulse:pulse@db:5432/pulse?sslmode=disable
PULSE_GRPC_ADDR: :9090
PULSE_REST_ADDR: :8080
ports:
- "8080:8080"
- "9090:9090"
depends_on:
db:
condition: service_healthy
labels:
pulse.port: 8080
pulse.subdomain: pulse-api
# agent:
# build:
# context: .
# dockerfile: agent/Dockerfile
# environment:
# PULSE_API_ADDR: http://api:9090
# PULSE_NODE_NAME: agent-1
# PULSE_POLL_INTERVAL: 30s
# PULSE_REDACT_PATTERNS: PASSWORD,SECRET,KEY,TOKEN,CREDENTIAL
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# depends_on:
# - api
ui:
build:
context: .
dockerfile: ui/Dockerfile
restart: unless-stopped
ports:
- "3000:80"
depends_on:
- api
labels:
pulse.port: 80
pulse.subdomain: pulse-ui
volumes:
pgdata: