-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 961 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 961 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
services:
timescaledb:
image: timescale/timescaledb:latest-pg14
container_name: lsu-fsae-timescaledb
environment:
POSTGRES_USER: fsae
POSTGRES_PASSWORD: fsae2026
POSTGRES_DB: daq_data
ports:
- "5432:5432"
volumes:
- timescale_data:/var/lib/postgresql/data
networks:
- fsae-network
fastapi:
image: python:3.13-slim
container_name: lsu-fsae-fastapi
working_dir: /app
volumes:
- ./app:/app
- ./dashboard:/dashboard
- ./database:/database
- ./parser:/parser
command: >
sh -c "pip install --no-cache-dir -r requirements.txt &&
uvicorn main:app --host 0.0.0.0 --port 8000"
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://fsae:fsae2026@timescaledb:5432/daq_data
depends_on:
- timescaledb
networks:
- fsae-network
networks:
fsae-network:
driver: bridge
volumes:
timescale_data: