-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 916 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 916 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
services:
timescaledb:
image: timescale/timescaledb-postgis:latest-pg13
container_name: timescaledb
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
flask-app:
build:
context: .
dockerfile: app/Dockerfile
ports:
- "8000:8000"
env_file: .env
depends_on:
- timescaledb
fastapi-app:
build:
context: .
dockerfile: timeseries_api/Dockerfile
ports:
- "8001:8001"
env_file: .env
depends_on:
- timescaledb
volumes:
db_data: