forked from IQSS/dataverse-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
155 lines (148 loc) · 5.27 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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"
- --providers.docker.network=traefik
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entryPoint.priority=10" # disable permanent forwarding for every route
- "--certificatesresolvers.myresolver.acme.tlschallenge=true" # <== Enable TLS-ALPN-01 to generate and renew ACME certs
- "--certificatesresolvers.myresolver.acme.email=${useremail}"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
# 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
# volume to store letsencrypt certificates
- "./letsencrypt:/letsencrypt"
networks:
- traefik
postgres:
networks:
- traefik
container_name: postgres
ports:
- "5433:5432"
image: postgres:10.13
restart: unless-stopped
environment:
- "LC_ALL=C.UTF-8"
- "POSTGRES_DB"
- "POSTGRES_USER"
- "POSTGRES_PASSWORD"
- "POSTGRES_PORT"
volumes:
- ./database-data:/var/lib/postgresql/data/ # persist data even if container shuts down
solr:
networks:
- traefik
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:
- 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"
- "traefik.http.routers.solr.tls=true"
- "traefik.http.routers.solr.tls.certresolver=myresolver"
whoami:
networks:
- traefik
image: "containous/whoami"
container_name: "whoami"
labels:
- "traefik.enable=true"
# - "traefik.http.routers.whoami.entrypoints=web"
- "traefik.http.routers.whoami.rule=Host(`whoami.${traefikhost}`)"
- "traefik.http.routers.whoami.tls=true"
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
dataverse:
networks:
- traefik
image: coronawhy/dataverse:5.5
container_name: dataverse
privileged: true
user:
"root"
ports:
#- "443:443"
- "4848:4848"
- "8085:8080"
environment:
- "CVM_SERVER_NAME=CESSDA" #Optional
- "DATAVERSE_DB_HOST"
- "DATAVERSE_DB_USER"
- "DATAVERSE_DB_PASSWORD"
- "DATAVERSE_DB_NAME"
- "DATAVERSE_SERVICE_HOST"
- "DATAVERSE_URL"
- "SOLR_SERVICE_HOST"
- "SOLR_SERVICE_PORT"
- "CVM_SERVER_URL=https://ns.${traefikhost}"
- "CVM_TSV_SOURCE=https://github.com/IQSS/dataverse-docker/releases/download/5.3-cv/cvocdemo.tsv"
- "1WAR_FILE=https://github.com/IQSS/dataverse-docker/releases/download/5.3-cv/dataverse-5.3-cv.war"
- "WAR_FILE=https://github.com/IQSS/dataverse/releases/download/v5.3/dataverse-5.3.war"
- "CVM_SQL=https://github.com/IQSS/dataverse-docker/releases/download/5.3-cv/cv-update.sql"
- "CVM_CONFIG=https://github.com/IQSS/dataverse-docker/releases/download/5.3-cv/cvoc-conf.json"
- "LANG=en"
- "cvManager=http://"
- "BUNDLEPROPERTIES=Bundle.properties"
- "ADMIN_EMAIL=admin@localhost"
- "MAIL_SERVER=mailrelay"
- "SOLR_LOCATION=solr:8983"
- "POSTGRES_SERVER"
- "POSTGRES_PORT"
- "POSTGRES_DATABASE"
- "POSTGRES_USER"
- "POSTGRES_PASSWORD"
- "PGPASSWORD"
- "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:
- ./secrets:/secrets
- ./data:/data
- ./docroot:/docroot
# - dataverse-data:/usr/local/payara5/glassfish/domains/domain1/autodeploy
labels:
- "traefik.enable=true"
- "traefik.http.routers.dataverse.rule=Host(`www.${traefikhost}`)"
- "traefik.http.services.dataverse.loadbalancer.server.port=8080"
- "traefik.http.routers.dataverse.tls=true"
- "traefik.http.routers.dataverse.tls.certresolver=myresolver"
volumes:
database-data:
solr-data:
dataverse-data:
networks:
traefik:
external: true