-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
41 lines (38 loc) · 790 Bytes
/
compose.yaml
File metadata and controls
41 lines (38 loc) · 790 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
services:
db:
image: postgres:17.4
restart: always
environment:
POSTGRES_DB: tibiacores
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: dev
restart: always
ports:
- "8080:8080"
depends_on:
- db
volumes:
- ./backend:/app
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
restart: always
ports:
- "5173:5173"
depends_on:
- backend
volumes:
- ./frontend:/app # Mount the entire frontend directory for hot reloading
- /app/node_modules # Use container's node_modules
volumes:
db: