-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.04 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
version: '3.8'
networks:
app-network:
services:
# PostgreSQL Database
postgres:
image: postgres:14
container_name: postgres-db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
ports:
- "5432:5432"
# API Service
api:
build:
context: ./apps/api
dockerfile: Dockerfile
container_name: api-service
environment:
NODE_ENV: development
volumes:
- ./apps/api:/app
- /app/node_modules
ports:
- "3000:3000"
networks:
- app-network
depends_on:
- postgres
# Client Service
client:
build:
context: ./apps/client
dockerfile: Dockerfile
container_name: client-service
environment:
NODE_ENV: development
volumes:
- ./apps/client:/app
- /app/node_modules
ports:
- "5173:5173"
networks:
- app-network
depends_on:
- api
volumes:
postgres_data: