-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 947 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 947 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
41
42
43
44
version: "3"
networks:
algo_trading_network: null
services:
db:
container_name: price-database
image: postgres:14-alpine
environment:
- POSTGRES_USER=dev
- POSTGRES_PASSWORD=password
- POSTGRES_DB=price_db
- POSTGRES_HOST=localhost
- POSTGRES_PORT=5432
ports:
- 5432:5432
networks:
- algo_trading_network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U dev -d price_db" ]
interval: 5s
timeout: 3s
retries: 5
server:
container_name: price-data-api
build:
dockerfile: Dockerfile
context: .
ports:
- "8080:8080"
environment:
- POSTGRES_USER=dev
- POSTGRES_PASSWORD=password
- POSTGRES_DB=price_db
- POSTGRES_HOST=price-database
- POSTGRES_PORT=5432
- POSTGRES_BATCH_SIZE=1000
depends_on:
db:
condition: service_healthy
networks:
- algo_trading_network