forked from ESGF/esgf-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-index-node.yml
78 lines (71 loc) · 2.08 KB
/
docker-compose-index-node.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
# required env variables:
#
# ESGF_CONFIG : points to the root ESGF configuration directory
# example: export ESGF_CONFIG=/Users/cinquini/ESGF_CONFIG
# ESGF_HOSTNAME: HostName or IP address for apache httpd front-end server
# example: export ESGF_HOSTNAME=my.esgf.node
# example: export ESGF_HOSTNAME=`docker-machine ip`
# ESGF_VERSION: version of ESGF/Docker distribution
# example: export ESGF_VERSION=1.0
version: '2'
services:
# data container holding site-specific ESGF configuration
esgf-config:
image: centos:6
container_name: esgf-config
volumes:
- $ESGF_CONFIG/httpd/certs/:/etc/certs/
- $ESGF_CONFIG/httpd/conf/esgf-httpd.conf:/etc/httpd/conf.d/esgf-httpd.conf
- $ESGF_CONFIG/grid-security/certificates/:/etc/grid-security/certificates/
- $ESGF_CONFIG/esg/config/:/esg/config/
- $ESGF_CONFIG/esg/config/tomcat/esg-truststore.ts:/usr/java/latest/jre/lib/security/jssecacerts
esgf-solr:
image: esgfhub/esgf-solr:${ESGF_VERSION}
container_name: solr
expose:
- "8983"
- "8984"
ports:
- "8983:8983"
- "8984:8984"
volumes:
# use solr index on Docker volume
- solr_data:/esg/solr-index
# use solr index from existing local directory
#- /Users/cinquini/tmp/solr-index:/esg/solr-index
networks:
- default
esgf-index-node:
image: esgfhub/esgf-index-node:${ESGF_VERSION}
container_name: index-node
expose:
- "8080"
- "8443"
ports:
- "8080:8080"
- "8443:8443"
depends_on:
- esgf-solr
volumes_from:
- esgf-config
networks:
- default
esgf-httpd:
image: esgfhub/esgf-httpd:${ESGF_VERSION}
container_name: httpd
entrypoint: /usr/local/bin/docker-entrypoint.sh
volumes_from:
- esgf-config
ports:
- "80:80"
- "443:443"
# httpd URLs must use hostname=$ESGF_HOSTNAME
networks:
default:
aliases:
- "${ESGF_HOSTNAME}"
# use Docker volumes to store persistent data
# (which survives when the containers are removed)
volumes:
# contains Solr index data
solr_data: