-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.25 KB
/
docker-compose.yml
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
53
54
55
56
57
58
59
version: '3.8'
services:
frontend:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./client:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:3000/api
depends_on:
- backend
backend:
build:
context: ./server
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./server:/app
- /app/node_modules
- ./content/uploads:/app/public/uploads:delegated
- ./content/patterns:/app/public/patterns:delegated
- ./content/fonts:/app/public/fonts:delegated
- uploads_data:/app/public/uploads
environment:
- DB_HOST=db
- DB_USER=kopfolio
- DB_PASSWORD=kopfolio
- DB_NAME=kopfolio
- JWT_SECRET=your-secret-key
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=kopfolio
- POSTGRES_PASSWORD=kopfolio
- POSTGRES_DB=kopfolio
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kopfolio"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
uploads_data: