-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 811 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (37 loc) · 811 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
version: "3.9"
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: sentinel
POSTGRES_PASSWORD: sentinel
POSTGRES_DB: sentinel
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: docker/Dockerfile.backend
environment:
API_KEY: ${API_KEY}
CAPITAL_USD: ${CAPITAL_USD:-10000}
POSTGRES_DSN: postgres://sentinel:sentinel@postgres:5432/sentinel
depends_on:
- postgres
ports:
- "8000:8000"
frontend:
build:
context: .
dockerfile: docker/Dockerfile.frontend
environment:
VITE_API_URL: http://backend:8000
VITE_API_KEY: ${API_KEY}
ports:
- "5173:5173"
depends_on:
- backend
volumes:
pgdata: