-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
137 lines (126 loc) · 3.41 KB
/
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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#secrets:
# S3_ACCESS_KEY:
# file: secrets/access_key.txt
# S3_SECRET_KEY:
# file: secrets/secret_key.txt
services:
glider-dac-providers-app: &provider_anchor
container_name: glider-dac-providers-app
restart: always
build: .
ports:
- 3000:5000
volumes:
# - ./config.local.yml:/glider-dac/config.local.yml
- log_volume:/glider-dac/logs
- berkeleydb_mount:/glider-dac/berkeleydb
- ${DATA_VOLUME:-data_volume}:/data
- erddap_big_parent_directory:/erddapData
- ./datasets.xml:/data/catalog/priv_erddap/datasets.xml
- /data/catalog/priv_erddap
#secrets:
# - S3_ACCESS_KEY
# - S3_SECRET_KEY
environment:
- DATA_ROOT=${DATA_ROOT}
- DATA_VOLUME=${DATA_VOLUME}
- FLAGS_DIR=${FLAGS_DIR}
- REDIS_HOST=${REDIS_HOST}
depends_on:
- mongo
- redis
glider-dac-worker:
<<: *provider_anchor
container_name: glider-dac-worker
command: python glider_dac/worker.py
ports: []
glider-dac-watchdog:
<<: *provider_anchor
container_name: glider-dac-watchdog
command: python glider_dac_watchdog.py
ports: []
glider-dac-cron:
<<: *provider_anchor
container_name: glider-dac-cron
user: root
command: cron -f
ports: []
qartod-worker:
build: .
command: python /glider-dac/scripts/glider_qartod.py -w
volumes:
- ${DATA_VOLUME:-data_volume}:/data
- berkeleydb_mount:/glider-dac/berkeleydb
- log_volume:/glider-dac/logs
restart: always
environment:
- DATA_VOLUME=${DATA_VOLUME}
- DATA_ROOT=${DATA_ROOT}
- FLAGS_DIR=${FLAGS_DIR}
- REDIS_HOST=${REDIS_HOST}
mongo:
container_name: mongo
image: mongo:4
volumes:
- mongo_storage:/data/db
- mongo_config:/data/configdb
restart: always
# For John Kerfoot's new status page application -- move elsewhere if needed
mysql:
restart: unless-stopped
image: mysql:8
container_name: mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_ONETIME_PASSWORD=yes
ports:
- 3306:3306
volumes:
- status_mysql:/var/lib/mysql
# TODO: THREDDS and ERDDAP will need volume configurations
thredds:
container_name: thredds
image: unidata/thredds-docker:5.4
ports:
- 8082:8080
volumes:
- ${DATA_VOLUME:-data_volume}:/data
- ./docker_contrib/catalog.xml:/usr/local/tomcat/content/thredds/catalog.xml
- ./docker_contrib/threddsConfig.xml:/usr/local/tomcat/content/thredds/threddsConfig.xml
- thredds_cache:/usr/local/tomcat/content/thredds/cache
- thredds_logs:/usr/local/tomcat/content/thredds/logs
environment:
- DATA_VOLUME=${DATA_VOLUME}
restart: always
erddap:
container_name: erddap
image: axiom/docker-erddap:2.23-jdk17-openjdk
ports:
- 8080:8080
restart: always
volumes:
- ${DATA_VOLUME:-data_volume}:/data
- erddap_big_parent_directory:/erddapData
- ./datasets.xml:/usr/local/tomcat/content/erddap/datasets.xml
environment:
- DATA_VOLUME=${DATA_VOLUME}
redis:
container_name: redis
restart: always
image: redis
volumes:
- redis_data:/data
deploy:
restart_policy:
condition: always
volumes:
data_volume:
berkeleydb_mount:
thredds_cache:
thredds_logs:
mongo_storage:
mongo_config:
redis_data:
status_mysql:
log_volume:
erddap_big_parent_directory: