-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.lab.yml
More file actions
37 lines (36 loc) · 847 Bytes
/
Copy pathdocker-compose.lab.yml
File metadata and controls
37 lines (36 loc) · 847 Bytes
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
# Lab deployment — connects to IRIS + PostgreSQL networks
services:
iris-data-explorer:
build: .
image: iris-data-explorer:latest
container_name: iris-data-explorer
restart: unless-stopped
read_only: true
tmpfs:
- /tmp:size=64M
ports:
- "${EXPLORER_PORT:-8087}:5000"
env_file: .env
networks:
- iris_frontend
- postgres-net
deploy:
resources:
limits:
cpus: "1"
memory: 512M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"]
interval: 30s
timeout: 5s
retries: 3
networks:
iris_frontend:
external: true
postgres-net:
external: true