-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
154 lines (142 loc) · 3.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
154 lines (142 loc) · 3.58 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
pubsub:
image: thekevjames/gcloud-pubsub-emulator:latest
container_name: pubsub
environment:
- PUBSUB_PROJECT1=local-project,dummy-topic
ports:
- "8681:8681"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8681" ]
interval: 5s
timeout: 3s
retries: 10
gcs:
image: fsouza/fake-gcs-server:latest
container_name: gcs
environment:
- PUBSUB_EMULATOR_HOST=pubsub:8681
command: >
-scheme http -public-host gcs:4443
-event.pubsub-project-id local-project
-event.pubsub-topic gcs-object-events
ports:
- "4443:4443"
healthcheck:
test: [ "CMD", "wget", "--spider", "-q", "http://localhost:4443/storage/v1/b" ]
interval: 5s
timeout: 3s
retries: 10
depends_on:
pubsub:
condition: service_healthy
mvfc-image-vision-api:
build:
context: ./src/MVFC.ImageVision.Api
container_name: mvfc-image-vision-api
ports:
- "5000:5000"
mvfc-image-upload-api:
build:
context: .
dockerfile: ./src/MVFC.ImageUpload.Api/Dockerfile
container_name: mvfc-image-upload-api
environment:
- PUBSUB_EMULATOR_HOST
- STORAGE_EMULATOR_HOST
ports:
- "8081:8080"
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy
mvfc-image-thumbnail-worker:
build:
context: .
dockerfile: ./src/MVFC.ImageThumbnail.Worker/Dockerfile
container_name: mvfc-image-thumbnail-worker
environment:
- PUBSUB_EMULATOR_HOST
- STORAGE_EMULATOR_HOST
ports:
- "8082:8080"
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy
mvfc-image-analysis-worker:
build:
context: .
dockerfile: ./src/MVFC.ImageAnalysis.Worker/Dockerfile
container_name: mvfc-image-analysis-worker
environment:
- PUBSUB_EMULATOR_HOST
- STORAGE_EMULATOR_HOST
- VisualApiUrl
ports:
- "8083:8080"
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy
mvfc-image-vision-api:
condition: service_started
mvfc-image-delete-worker:
build:
context: .
dockerfile: ./src/MVFC.ImageDelete.Worker/Dockerfile
container_name: mvfc-image-delete-worker
environment:
- PUBSUB_EMULATOR_HOST
- STORAGE_EMULATOR_HOST
ports:
- "8086:8080"
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy
mvfc-image-converter-worker:
build:
context: .
dockerfile: ./src/MVFC.ImageConverter.Worker/Dockerfile
container_name: mvfc-image-converter-worker
environment:
- PUBSUB_EMULATOR_HOST
- STORAGE_EMULATOR_HOST
ports:
- "8084:8080"
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy
mvfc-image-dashboard-ui:
build:
context: .
dockerfile: ./src/MVFC.ImageDashboard.UI/Dockerfile
container_name: mvfc-image-dashboard-ui
environment:
- PUBSUB_EMULATOR_HOST
- STORAGE_EMULATOR_HOST
ports:
- "3000:8080"
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy
mvfc-gcs-router:
image: python:3.10-alpine
container_name: mvfc-gcs-router
volumes:
- ./scripts:/scripts
command: python /scripts/gcs_router.py
depends_on:
pubsub:
condition: service_healthy
gcs:
condition: service_healthy