-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
129 lines (121 loc) · 2.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
129 lines (121 loc) · 2.69 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '3.1'
services:
gateway:
build:
context: .
dockerfile: ./apps/gateway/Dockerfile
target: production
env_file:
- ./apps/gateway/.env
ports:
- '3000:3000' # HTTP 포트
networks:
- backend
restart: always
user:
build:
context: .
dockerfile: ./apps/user/Dockerfile
target: production
depends_on:
postgres_user:
condition: service_healthy
env_file:
- ./apps/user/.env
networks:
- backend
restart: always
postgres_user:
image: postgres:16
env_file:
- ./apps/user/.env
networks:
- backend
volumes:
- ./postgres/user:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d yeowoobi-db -U yeowoo"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
restart: always
book-log:
build:
context: .
dockerfile: ./apps/book-log/Dockerfile
target: production
depends_on:
postgres_book-log:
condition: service_healthy
env_file:
- ./apps/book-log/.env
networks:
- backend
restart: always
postgres_book-log:
image: postgres:16
env_file:
- ./apps/book-log/.env
environment:
POSTGRES_USER: yeowoo
POSTGRES_PASSWORD: yeowoo1234!@
POSTGRES_DB: yeowoobi-booklog-db
volumes:
- ./postgres/book-log:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d yeowoobi-booklog-db -U yeowoo"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
networks:
- backend
restart: always
community:
build:
context: .
dockerfile: ./apps/community/Dockerfile
target: production
depends_on:
postgres_community:
condition: service_healthy
env_file:
- ./apps/community/.env
networks:
- backend
restart: always
postgres_community:
image: postgres:16
env_file:
- ./apps/community/.env
environment:
POSTGRES_USER: yeowoo
POSTGRES_PASSWORD: yeowoo1234!@
POSTGRES_DB: yeowoobi-community-db
volumes:
- ./postgres/community:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d yeowoobi-community-db -U yeowoo"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
networks:
- backend
restart: always
book-recommendation:
build:
context: .
dockerfile: ./apps/book-recommendation/Dockerfile
target: production
env_file:
- ./apps/book-recommendation/.env
ports:
- '3001:3001'
networks:
- backend
restart: always
networks:
backend:
driver: bridge