-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (117 loc) · 3.25 KB
/
docker-compose.yml
File metadata and controls
125 lines (117 loc) · 3.25 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
---
services:
demographicservice:
container_name: demographicservice
image: ankushpandit/demographic
ports:
-
published: 18081
target: 18081
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=B4"f'-_s"a,yaVKM
educationservice:
container_name: educationservice
image: ankushpandit/education
ports:
-
published: 18082
target: 18082
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=B4"f'-_s"a,yaVKM
experienceservice:
container_name: experienceservice
image: ankushpandit/experience
ports:
-
published: 18083
target: 18083
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=B4"f'-_s"a,yaVKM
headlineservice:
container_name: headlineservice
image: ankushpandit/headline
ports:
-
published: 18084
target: 18084
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=B4"f'-_s"a,yaVKM
responsibilitiesservice:
container_name: responsibilitiesservice
image: ankushpandit/responsibilities
ports:
-
published: 18085
target: 18085
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=B4"f'-_s"a,yaVKM
toolsservice:
container_name: toolsservice
image: ankushpandit/tools
ports:
-
published: 18086
target: 18086
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=B4"f'-_s"a,yaVKM
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=B4"f'-_s"a,yaVKM
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5432:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
# copy the sql script to create tables
- ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
# copy the sql script to fill tables
- ./sql/fill_tables.sql:/docker-entrypoint-initdb.d/fill_tables.sql
frontend:
container_name: frontend
image: ankushpandit/resume-frontend
volumes:
- ./:/usr/src/app
- '/app/node_modules'
ports:
- 3000:3000
depends_on:
- postgres
- demographicservice
- educationservice
- experienceservice
- headlineservice
- responsibilitiesservice
- toolsservice
environment:
- CHOKIDAR_USEPOLLING=true
version: "3.3"