-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 983 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 983 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
version: "3.9"
services:
postgres:
image: postgres:15
container_name: driftlab-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-driftlab}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-driftlab}
POSTGRES_DB: ${POSTGRES_DB:-driftlab}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- driftlab_pg_data:/var/lib/postgresql/data
backend:
build:
context: ./backend
container_name: driftlab-backend
restart: unless-stopped
env_file:
- .env
ports:
- "${BACKEND_PORT:-8000}:8000"
depends_on:
- postgres
volumes:
- ./backend:/app
dashboard:
build:
context: ./dashboard
container_name: driftlab-dashboard
restart: unless-stopped
env_file:
- .env
ports:
- "${DASHBOARD_PORT:-3000}:3000"
depends_on:
- backend
volumes:
- ./dashboard:/app
- /app/node_modules
volumes:
driftlab_pg_data: