-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
70 lines (65 loc) · 1.43 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
70 lines (65 loc) · 1.43 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: pos-postgres-dev
environment:
POSTGRES_DB: pos_system
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres123
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
- ./database/init:/docker-entrypoint-initdb.d
networks:
- pos-network
# Golang Backend API (Development)
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
target: development
container_name: pos-backend-dev
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres123
- DB_NAME=pos_system
- PORT=8080
- GIN_MODE=debug
ports:
- "8080:8080"
depends_on:
- postgres
networks:
- pos-network
volumes:
- ./backend:/app
restart: unless-stopped
# Frontend (Development)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
target: development
container_name: pos-frontend-dev
environment:
- VITE_API_URL=http://localhost:8080/api/v1
ports:
- "3000:3000"
- "5173:5173"
depends_on:
- backend
networks:
- pos-network
volumes:
- ./frontend:/app
- /app/node_modules
restart: unless-stopped
volumes:
postgres_dev_data:
networks:
pos-network:
driver: bridge