-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 842 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 842 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.9'
services:
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: fl_user
POSTGRES_PASSWORD: fl_password
POSTGRES_DB: fl_platform
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
backend:
build: ./backend
restart: always
environment:
DATABASE_URL: postgresql+psycopg2://fl_user:fl_password@db:5432/fl_platform
BACKEND_HOST: 0.0.0.0
BACKEND_PORT: 8000
depends_on:
- db
ports:
- "8000:8000"
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
frontend:
build: ./frontend
restart: always
environment:
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000
depends_on:
- backend
ports:
- "3000:3000"
command: npm run dev
volumes:
db_data: