-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathcompose.prod.build.yaml
More file actions
93 lines (80 loc) · 2.04 KB
/
compose.prod.build.yaml
File metadata and controls
93 lines (80 loc) · 2.04 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
# This file provides overrides for manually building and using the PRODUCTION containers.
# - It REPLACES 'image' directives with 'build' directives
# - Sets the Docke build target to "prod"
services:
web-api:
image: !reset null
build:
context: .
dockerfile: ./projects/web_api/Dockerfile
target: prod
titus-scanner:
image: !reset null
build:
context: .
dockerfile: ./projects/titus_scanner/Dockerfile
target: prod
dotnet-service:
image: !reset null
build:
context: .
dockerfile: ./projects/dotnet_service/Dockerfile
target: prod
file-enrichment: &file-enrichment-build
image: !reset null
build:
context: .
dockerfile: ./projects/file_enrichment/Dockerfile
target: prod
### Replica #1
# file-enrichment-1:
# <<: *file-enrichment-build
### Replica #2
# file-enrichment-2:
# <<: *file-enrichment-build
### Replica #3
# file-enrichment-3:
# <<: *file-enrichment-build
frontend:
image: !reset null
build:
context: ./projects/frontend/
dockerfile: Dockerfile
target: prod
command: >
sh -c "
SECRET=\"$$HASURA_ADMIN_SECRET\" &&
sed -i \"s/\\$$HASURA_ADMIN_SECRET/$$SECRET/g\" /usr/share/nginx/html/index.html &&
nginx -g 'daemon off;'
"
labels:
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
jupyter:
image: !reset null
build:
context: ./projects/jupyter/
dockerfile: Dockerfile
alerting:
image: !reset null
build:
context: .
dockerfile: ./projects/alerting/Dockerfile
target: prod
agents:
image: !reset null
build:
context: .
dockerfile: ./projects/agents/Dockerfile
target: prod
housekeeping:
image: !reset null
build:
context: .
dockerfile: ./projects/housekeeping/Dockerfile
target: prod
document-conversion:
image: !reset null
build:
context: .
dockerfile: ./projects/document_conversion/Dockerfile
target: prod