-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 870 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:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ./backend/.env
# volumes: # Uncomment if you want your localfiles to be used.
# - ./backend:/app
depends_on:
- db
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_BACKEND_URL: http://localhost:8000
ports:
- "3000:3000"
env_file:
- ./frontend/.env.local
# volumes: # Uncomment if you want your localfiles to be used.
# - ./frontend:/app
depends_on:
- backend
db:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: remote_radar
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: