forked from ERDDAP/erddap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
30 lines (28 loc) · 882 Bytes
/
docker-compose.yml
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
services:
erddap:
build: .
ports:
- "${ERDDAP_PORT:-8080}:8080"
- "${ERDDAP_DEBUG_PORT:-8000}:8000"
volumes:
- data:/erddapData
environment:
ERDDAP_MEMORY: "${ERDDAP_MEMORY:-4g}"
ERDDAP_baseUrl: "http://${ERDDAP_HOST:-localhost}:${ERDDAP_PORT:-8080}"
ERDDAP_enableCors: "true"
#ERDDAP_corsAllowOrigin: "https://some-allowed-domain.com,http://this-one-also.org:8080"
#JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n"
mem_limit: "${ERDDAP_CONTAINER_MEM_LIMIT:-6g}"
healthcheck:
test: ["CMD", "curl", "-fl", "http://localhost:8080/erddap/index.html"]
interval: 15s
timeout: 5s
retries: 3
logs:
image: debian:bookworm-slim
volumes:
- data:/erddapData:ro
mem_limit: 256m
command: tail -F /erddapData/logs/log.txt
volumes:
data: