-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
75 lines (71 loc) · 2.1 KB
/
docker-compose.yaml
File metadata and controls
75 lines (71 loc) · 2.1 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
# Services to run the Rapid Evaluation Framework (REF) diagnostic workers
# These can be started by running `docker-compose up` in the root directory of the codebase.
name: climate-ref
services:
redis:
image: redis:7
restart: always
ports:
- "6379:6379"
postgres:
image: postgres:17
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
flower:
image: mher/flower:2.0.1
restart: always
environment:
- CELERY_BROKER_URL=redis://redis:6379/1
- CELERY_RESULT_BACKEND=redis://redis:6379/1
- CELERY_ACCEPT_CONTENT=["json","pickle"]
ports:
- "5555:5555"
depends_on:
- redis
# Base worker to track the executions of async tasks
climate-ref:
image: ghcr.io/climate-ref/climate-ref:latest
restart: always
depends_on:
- postgres
- redis
environment:
- CELERY_BROKER_URL=redis://redis:6379/1
- CELERY_RESULT_BACKEND=redis://redis:6379/1
- REF_EXECUTOR=climate_ref_celery.executor.CeleryExecutor
- REF_DATABASE_URL=postgresql://postgres:example@postgres:5432/postgres
command: celery start-worker --loglevel INFO
volumes:
- ./tests/test-data/sample-data:/ref/data
- ref:/ref
# Diagnostic workers - one per diagnostic package based on the climate-ref service
# ESMValTool worker
climate-ref-esmvaltool:
extends:
service: climate-ref
command: celery start-worker --provider esmvaltool --loglevel INFO
# ILAMB worker
climate-ref-ilamb:
extends:
service: climate-ref
command: celery start-worker --provider ilamb --loglevel INFO
# PMP worker
climate-ref-pmp:
extends:
service: climate-ref
command: celery start-worker --provider pmp --loglevel INFO
# Example worker
climate-ref-example:
extends:
service: climate-ref
command: celery start-worker --provider example --loglevel INFO
volumes:
# This volume contains the database, scratch directories and the conda environments
ref:
postgres-data: