-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 855 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 855 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
volumes:
test_data:
services:
db:
container_name: db-test
image: postgres
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: devPassword
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- test_data:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dev -d postgres"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
frontend:
container_name: frontend-test
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "5173:5173"
depends_on:
- backend
backend:
container_name: backend-test
build:
context: ./backend
volumes:
- ./backend:/backend
depends_on:
- db
ports:
- "8000:8000"