-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (56 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
57 lines (56 loc) · 1.08 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
version: '3.2'
#========================================
services:
postgres:
container_name: postgres
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: ft_db
tty: true # 나중에 지울 것.
expose:
- "5432"
volumes:
- type: bind
source: ./table.sql
target: /docker-entrypoint-initdb.d/table.sql
- type: bind
source: ./database
target: /var/lib/postgresql/data
networks:
- intra
nest:
container_name: nest
build: ./backend
ports:
- "3000:3000"
- "8000:8000"
- "4242:4242"
depends_on:
- react
- postgres
tty: true
networks:
- intra
volumes:
- type: bind
source: ./uploads
target: /app/uploads
react:
container_name: react
build: ./frontend
ports:
- "3001:3001"
depends_on:
- postgres
tty: true
networks:
- intra
volumes:
db_volume:
networks:
intra:
driver: bridge
#========================================