-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose-local.yml
133 lines (123 loc) · 4.16 KB
/
docker-compose-local.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
version: '3'
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.2
# Enables the web UI and tells Traefik to listen to docker
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--"
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8089:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
postgres:
container_name: postgres
ports:
- "5432:5432"
image: library/postgres:10.13
restart: unless-stopped
environment:
- "LC_ALL=C.UTF-8"
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
volumes:
- database-data:/var/lib/postgresql/data/ # persist data even if container shuts down
dbgui:
image: dockage/phppgadmin
container_name: dbgui
environment:
- PHP_PG_ADMIN_SERVER_HOST=postgres
ports:
- 8086:80
solr:
image: ekoindarto/solr-cvm:latest
container_name: solr
privileged: true
ports:
- "8983:8983"
environment:
- "SOLR_HOST=solr"
- "SOLR_PORT=8983"
- "SOLR_JAVA_MEM=-Xms1g -Xmx1g"
volumes:
- ./data/solr-data:/opt/solr/server/solr/collection1/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.solr.rule=Host(`solr.${traefikhost}`)"
- "traefik.http.services.solr.loadbalancer.server.port=8983"
whoami:
image: "containous/whoami"
container_name: "whoami"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.entrypoints=web"
- "traefik.http.routers.whoami.rule=Host(`whoami.${traefikhost}`)"
dataverse:
image: coronawhy/dataverse:5.2.2-cv
container_name: dataverse
privileged: true
ports:
- "443:443"
- "4848:4848"
- "8085:8080"
environment:
- "CVM_SERVER_NAME=CESSDA" #Optional
- "CVM_SERVER_URL=https://vocabularies-dev.cessda.eu/v2/search/vocabularies"
- "CVM_TSV_SOURCE=https://github.com/IQSS/dataverse-docker/releases/download/5.2-cv/citation.tsv"
- "1GIT_CVM_TEMPLATES=https://github.com/Dans-labs/semantic-gateway"
- "WAR_FILE=https://github.com/IQSS/dataverse-docker/releases/download/5.2-cv/dataverse-5.2-cv.war"
- "GIT_BRANCH=v5.2-cvm"
- "CVM_SQL=https://github.com/IQSS/dataverse-docker/releases/download/5.2-cv/cv-update.sql"
- "CVM_CONFIG=https://github.com/IQSS/dataverse-docker/releases/download/5.2-cv/cv-cessda-keywords.json"
- "GIT_SOURCE=https://github.com/ekoi/dataverse"
- "GIT_BRANCH=v5.0-cvm-autocomplete"
- "LANG=en"
- "cvManager=http://"
- "BUNDLEPROPERTIES=Bundle.properties"
- "ADMIN_EMAIL=admin@localhost"
- "MAIL_SERVER=mailrelay"
- "POSTGRES_SERVER=postgres"
- "POSTGRES_PORT=${POSTGRES_PORT}"
- "POSTGRES_DATABASE=${POSTGRES_DB}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "PGPASSWORD=${POSTGRES_PASSWORD}"
- "SOLR_LOCATION=solr:8983"
- "TWORAVENS_LOCATION=NOT INSTALLED"
- "RSERVE_HOST=localhost"
- "RSERVE_PORT=6311"
- "RSERVE_USER=rserve"
- "RSERVE_PASSWORD=rserve"
- "JVM_OPTS='-Xmx1g -Xms1g -XX:MaxPermSize=2g -XX:PermSize=2g'"
depends_on:
- postgres
- solr
volumes:
- dataverse-data:/usr/local/payara5/glassfish/domains/domain1/autodeploy
labels:
- "traefik.enable=true"
- "traefik.http.routers.dataverse.rule=Host(`dataverse-dev.${traefikhost}`)"
- "traefik.http.services.dataverse.loadbalancer.server.port=8080"
repo:
image: nginx:latest
container_name: repo
ports:
- "8080:80"
volumes:
- ${LOCAL_WAR}:/usr/share/nginx/html/dataverse.war
volumes:
database-data:
solr-data:
dataverse-data:
networks:
dvn:
driver: bridge