-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
51 lines (39 loc) · 948 Bytes
/
compose.yaml
File metadata and controls
51 lines (39 loc) · 948 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
45
46
47
48
49
50
51
version: "3.9"
services:
app:
build:
context: .
dockerfile: Dockerfile
image: analytics_api:v1
env_file:
- .env.compose
ports:
- "8002:8000"
volumes:
- ./src:/code/src
environment:
- PYTHONPATH=/code/src
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
develop:
watch:
- action: rebuild
path: Dockerfile
- action: rebuild
path: requirements.txt
- action: rebuild
path: docker-compose.yml
# postgresql+psycopg://time-user:time-password@db_service:5432/timescaledb
db_service:
image: timescale/timescaledb:latest-pg17
environment:
POSTGRES_USER: time-user
POSTGRES_PASSWORD: time-password
POSTGRES_DB: timescaledb
ports:
- "5432:5432"
expose:
- 5432
volumes:
- timescaledb_data:/var/lib/postgresql/data
volumes:
timescaledb_data: