forked from golang-delta-team4/gholi-fly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yaml
157 lines (146 loc) · 3.92 KB
/
docker-compose-dev.yaml
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
services:
gholi-hotels-api:
container_name: gholi-hotels-api-dev
build:
context: ./micro-services/hotel
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/hotel:/gholi-fly
ports:
- "8081:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/hotel/health"]
interval: 10s
timeout: 5s
retries: 5
restart: always
gholi-banks-api:
container_name: gholi-banks-api-dev
build:
context: ./micro-services/bank
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/bank:/gholi-fly
ports:
- "8080:8080"
restart: always
gholi-users-api:
container_name: gholi-users-api-dev
build:
context: ./micro-services/user
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/user:/gholi-fly
ports:
- "8083:8080"
- "50053:50051"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
interval: 30s
timeout: 10s
retries: 10
restart: always
gholi-maps-api:
container_name: gholi-maps-api-dev
build:
context: ./micro-services/maps
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/maps:/gholi-fly
ports:
- "8082:8080"
restart: always
gholi-transportation-api:
container_name: gholi-transportation-api-dev
build:
context: ./micro-services/transportCompany
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/transportCompany:/gholi-fly
ports:
- "8084:8080"
restart: always
gholi-vehicle-api:
container_name: gholi-vehicle-api-dev
build:
context: ./micro-services/vehicle
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/vehicle:/gholi-fly
ports:
- "8085:8080"
restart: always
gholi-agency-api:
container_name: gholi-agency-api-dev
build:
context: ./micro-services/agancy
dockerfile: build/Dockerfile
target: dev
volumes:
- ./micro-services/agancy:/gholi-fly
- ./Logs:/gholi-fly/Logs
ports:
- "8086:8080"
restart: always
gholi-notification-api:
# image: outbox-nats
container_name: gholi-notification-api-dev
restart: on-failure
build:
context: ./micro-services/notification
dockerfile: build/Dockerfile
volumes:
- ./micro-services/notification/config.json:/app/config.json:ro
ports:
- "8089:8080"
- "50059:50051"
command: ["./app", "--config", "/app/config.json"]
gholi-notification-relay:
# image: outbox-nats
container_name: gholi-notification-relay-dev
restart: on-failure
build:
context: ./micro-services/notification
dockerfile: build/Dockerfile
volumes:
- ./micro-services/notification/config.json:/app/config.json
command: [ "./relay", "--config", "/app/config.json"]
gholi-notification-worker:
# image: outbox-nats
container_name: gholi-notification-worker-dev
restart: on-failure
build:
context: ./micro-services/notification
dockerfile: build/Dockerfile
volumes:
- ./micro-services/notification/config.json:/app/config.json:ro
- ./micro-services/notification/internal/email/template:/app/template
command: [ "./worker", "--config", "/app/config.json"]
gholi-nginx:
image: nginx:1.25.2
container_name: gholi-nginx-dev
restart: always
ports:
- "80:80"
volumes:
- ./nginx-config-dev.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- gholi-users-api
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/api/v1/users/health"]
interval: 30s
timeout: 5s
retries: 10
volumes:
gholi_logs:
driver: local
gholi_notification_config:
driver: local
gholi_notification_template:
driver: local