forked from NOAA-OWP/ngencerf-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
64 lines (60 loc) · 1.72 KB
/
compose.yaml
File metadata and controls
64 lines (60 loc) · 1.72 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
name: ngencerf-server
services:
redis:
image: redis:7.2
container_name: ngencerf-redis
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
volumes:
- ./redis/redis.conf.prod:/usr/local/etc/redis/redis.conf:ro
ports:
- "6379:6379"
restart: no # ensure Redis is recreated fresh on each deploy; no auto-restart
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
retries: 5
timeout: 5s
db:
image: postgres:16
ports:
- "5432:5432"
volumes:
- ../data/db:/var/lib/postgresql/data
env_file:
- path: ./postgres_db.env
required: true
- path: ./postgres_db.override.env
required: false
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
retries: 5
timeout: 5s
ngencerf-services:
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
build:
context: .
args:
- MSWM_REF=${MSWM_REF:-development}
- NGEN_FORCING_REF=${NGEN_FORCING_REF:-development}
- DATA_ASSIMILATION_REF=${DATA_ASSIMILATION_REF:-development}
- CACHE_BUST=${CACHE_BUST:-1}
image: ghcr.io/ngwpc/ngencerf-server:${NGENCERF_SERVER_TAG:-latest}
pull_policy: build
ports:
- "8000:8000"
volumes:
- ../data/.ngencerf-init:/ngencerf/ngencerf-server/.init/
- ${NGEN_CAL_DATA_PATH}:/ngencerf/data/
- ../logs/ngencerf-server:/ngencerf/ngencerf-server/logs/
environment:
- NGEN_CAL_DATA_PATH=${NGEN_CAL_DATA_PATH}
env_file:
- path: cerfServer/.env-docker-dev
required: true
- path: cerfServer/.env-override
required: false