-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
40 lines (34 loc) · 1011 Bytes
/
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
31
32
33
34
35
36
37
38
39
40
version: '3.4'
x-common: &common
logging:
options:
max-size: "10m"
max-file: "10"
services:
data-server:
image: "nsidc/snow-today-webapp-server:${SERVER_VERSION:-latest}"
container_name: "data-server"
<<: *common
volumes:
- "${STORAGE_DIR:?STORAGE_DIR must be set}/live:/usr/share/nginx/html:ro"
ports:
- "80:80"
- "443:443"
ingest:
image: "nsidc/snow-today-webapp-server-ingest:${SERVER_VERSION:-latest}"
container_name: "ingest"
<<: *common
volumes:
- "${STORAGE_DIR:?STORAGE_DIR must be set}:/storage:rw"
- "${STORAGE_DIR:?STORAGE_DIR must be set}/incoming:/storage/incoming:ro"
environment:
# Timezone is critical because the ingest code cares about the date for
# generating dynamic legends
TZ: "America/Denver"
# Use a generic storage dir within the container
STORAGE_DIR: "/storage"
restart: 'no'
logging:
options:
max-size: "10m"
max-file: "10"