-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 966 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (38 loc) · 966 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
37
38
39
40
services:
db:
image: timescale/timescaledb-ha:pg18
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
# ports:
# - 5432:5432
volumes:
- db_data:/home/postgres/pgdata/data
- ./docker/tsdb/100_setup_db.sql:/docker-entrypoint-initdb.d/100_setup_db.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 1s
timeout: 5s
retries: 50
app:
build:
context: .
depends_on:
db:
condition: service_healthy
env_file: .env
environment:
- NODE_ENV=development
ports:
- 3020:3001
volumes:
- ./migrations:/app/migrations
- ./src:/app/src
- ./skills:/app/skills
- ./skills.yaml:/app/skills.yaml
- ./package.json:/app/package.json
- ./bun.lock:/app/bun.lock
- ./tsconfig.json:/app/tsconfig.json
command: bun run --watch src/index.ts http
volumes:
db_data: