-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.21 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
version: '3.5'
services:
thredds:
image: unidata/thredds-docker:5.5-SNAPSHOT
#image: europe-west1-docker.pkg.dev/niva-cd/images/thredds:latest
ports:
- "80:8080"
- "443:8443"
- "8443:8443"
container_name: thredds
volumes:
- ./catalog/catalog.xml:/usr/local/tomcat/content/thredds/catalog.xml
- ./catalog/datasets:/datasets
- ./catalog/ncml-to-iso.xsl:/usr/local/tomcat/webapps/thredds/WEB-INF/classes/resources/xsl/nciso/UnidataDD2MI.xsl
pycsw:
image: geopython/pycsw:latest
environment:
- PYCSW_SERVER_URL=http://localhost:8000
ports:
- 8000:8000
volumes:
- ./catalog/metadata/pycsw.yml:/etc/pycsw/pycsw.yml
- ./catalog/metadata/:/home/pycsw/data/
populate-metadata:
image: geopython/pycsw:latest
entrypoint: /bin/bash
command:
- -c
- |
pycsw-admin.py delete-records -c /etc/pycsw/pycsw.yml -y
pycsw-admin.py load-records -p data -c /etc/pycsw/pycsw.yml
environment:
- PYCSW_SERVER_URL=http://pycsw:8000
volumes:
- ./catalog/metadata/pycsw.yml:/etc/pycsw/pycsw.yml
- ./catalog/metadata/:/home/pycsw/data/
depends_on:
pycsw:
condition: service_started