-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
123 lines (119 loc) · 2.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
123 lines (119 loc) · 2.57 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
---
name: elevadr-orchestration
services:
elevadr-backend:
image: docker.io/cisagov/elevadr-backend:develop
build:
context: ./backend
dockerfile: Dockerfile
secrets:
- ssl_cert
cap_drop:
- ALL
container_name: elevadr-backend
read_only: true
volumes:
- type: tmpfs
target: /tmp
- type: tmpfs
target: /app/src/app/data/uploads
tmpfs:
mode: 1023
- type: tmpfs
target: /app/src/app/data/zeeks
tmpfs:
mode: 1023
- type: tmpfs
target: /app/output
tmpfs:
mode: 1023
- type: tmpfs
target: /input
tmpfs:
mode: 1023
- type: tmpfs
target: /output
tmpfs:
mode: 1023
environment:
ELEVADR_MODE: api
API_PORT: 8000
FRONTEND_ORIGIN: http://localhost:8080,http://127.0.0.1:8080
SSL_CERT_FILE: ${SSL_CERT_FILE}
REQUESTS_CA_BUNDLE: ${REQUESTS_CA_BUNDLE}
CURL_CA_BUNDLE: ${CURL_CA_BUNDLE}
UV_CACHE_DIR: /tmp/uv_cache
ports:
- 127.0.0.1:8000:8000
restart: unless-stopped
networks:
- elevadr-network
security_opt:
- no-new-privileges:true
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8000/health
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
deploy:
resources:
limits:
memory: 4GB
cpus: "4"
reservations:
memory: 512MB
elevadr-ui:
image: docker.io/cisagov/elevadr-ui:develop
build:
context: ./frontend
dockerfile: Dockerfile
secrets:
- ssl_cert
cap_drop:
- ALL
container_name: elevadr-frontend
read_only: true
tmpfs:
- /tmp
- /var/cache/nginx
- /var/run
environment:
SSL_CERT_FILE: ${SSL_CERT_FILE}
CURL_CA_BUNDLE: ${CURL_CA_BUNDLE}
ports:
- 127.0.0.1:8080:8080
restart: unless-stopped
networks:
- elevadr-network
security_opt:
- no-new-privileges:true
healthcheck:
test:
- CMD
- sh
- -c
- wget -qO- http://localhost:8080/health | grep -q OK
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
depends_on:
elevadr-backend:
condition: service_healthy
deploy:
resources:
limits:
memory: 512MB
reservations:
memory: 200MB
networks:
elevadr-network:
driver: bridge
secrets:
ssl_cert:
file: ./.devcontainer/certs/corp-ca.crt