-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.09 KB
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
48
49
50
51
52
services:
postgres:
image: postgres:16
container_name: sprintflow-db
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "${DB_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: ./apps/backend/Dockerfile
container_name: sprintflow-backend
working_dir: /app
ports:
- "5000:5000"
env_file:
- .env
environment:
- DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@postgres:${DB_PORT}/${DB_NAME}
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/sprintflow
volumes:
- .:/app
- /app/node_modules
depends_on:
- postgres
frontend:
build:
context: .
dockerfile: ./apps/frontend/Dockerfile
container_name: sprintflow-frontend
working_dir: /app
ports:
- "5173:5173"
env_file:
- .env
volumes:
- .:/app
- /app/node_modules
depends_on:
- backend
volumes:
postgres_data: