-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (48 loc) · 1.35 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
50 lines (48 loc) · 1.35 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
# Local development datastores for path-pulse-iot-backend.
#
# make up # start Postgres + InfluxDB
# make server # run the gRPC server against them
# make down # stop and remove
#
# Credentials here are for LOCAL DEVELOPMENT ONLY.
services:
postgres:
image: postgres:16-alpine
container_name: pathpulse-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pathpulse
ports:
- "5432:5432"
volumes:
- pathpulse-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d pathpulse"]
interval: 5s
timeout: 5s
retries: 10
influxdb:
image: influxdb:2
container_name: pathpulse-influxdb
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: admin12345
DOCKER_INFLUXDB_INIT_ORG: pathpulse
DOCKER_INFLUXDB_INIT_BUCKET: tracker
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: dev-token-pathpulse-please-change
ports:
- "8086:8086"
volumes:
- pathpulse-influxdata:/var/lib/influxdb2
- pathpulse-influxconfig:/etc/influxdb2
healthcheck:
test: ["CMD", "influx", "ping"]
interval: 5s
timeout: 5s
retries: 10
volumes:
pathpulse-pgdata:
pathpulse-influxdata:
pathpulse-influxconfig: