-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 881 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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "3001:3001"
volumes:
- ./data:/app/data
- ./timeline.json:/app/timeline.json
environment:
- FLASK_ENV=development
command: ["python", "-m", "cli.src.main", "serve", "--port", "3001"]
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- backend
environment:
- REACT_APP_API_URL=http://localhost:3001
# Optional: Add a database service if needed in the future
# database:
# image: postgres:13
# environment:
# POSTGRES_DB: codebase_timeline
# POSTGRES_USER: user
# POSTGRES_PASSWORD: password
# ports:
# - "5432:5432"
# volumes:
# - postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: