Skip to content

Commit

Permalink
Merge pull request #44 from vicding-mi/local_war
Browse files Browse the repository at this point in the history
use local war from local repo
  • Loading branch information
4tikhonov authored Oct 28, 2020
2 parents 5fa5c7e + e31e923 commit 5ceab0f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POSTGRES_DB=dvndb
POSTGRES_USER=dvnuser
POSTGRES_PASSWORD=dvnsecret
POSTGRES_PORT=5432

LOCAL_WAR=./dataverse.war
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dataverse.war

#Ignoring IDE files
.idea
.idea/*

#Ignoring letsencrpt folders for SSL
letsencrypt
letsencrypt/*
37 changes: 27 additions & 10 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,21 @@ services:

environment:
- "LC_ALL=C.UTF-8"
- "POSTGRES_DB=dvndb"
- "POSTGRES_USER=dvnuser"
- "POSTGRES_PASSWORD=dvnsecret"
- "POSTGRES_PORT=5432"
- 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
Expand All @@ -46,7 +54,7 @@ services:
- "SOLR_PORT=8983"
- "SOLR_JAVA_MEM=-Xms1g -Xmx1g"
volumes:
- solr-data:/opt/solr/server/solr/collection1/data
- ./data/solr-data:/opt/solr/server/solr/collection1/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.solr.rule=Host(`solr.${traefikhost}`)"
Expand All @@ -72,7 +80,7 @@ services:
- "CVM_SERVER_NAME=CESSDA" #Optional
- "CVM_SERVER_URL=http://cv.dataverse.org.ua"
- "CVM_TSV_SOURCE=https://raw.githubusercontent.com/ekoi/speeltuin/master/resources/CMM_Custom_MetadataBlock.tsv" #Optional
- "OLD_WAR_FILE=https://github.com/IQSS/dataverse-docker/releases/download/5.0.1-cvm/dataverse-5_0_cvm.war"
- "WAR_FILE=http://repo/dataverse.war"
- "GIT_SOURCE=https://github.com/ekoi/dataverse"
- "GIT_BRANCH=v5.0-cvm-autocomplete"
- "LANG=en"
Expand All @@ -81,10 +89,10 @@ services:
- "ADMIN_EMAIL=admin@localhost"
- "MAIL_SERVER=mailrelay"
- "POSTGRES_SERVER=postgres"
- "POSTGRES_PORT=5432"
- "POSTGRES_DATABASE=dvndb"
- "POSTGRES_USER=dvnuser"
- "PGPASSWORD=dvnsecret"
- "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"
Expand All @@ -101,6 +109,15 @@ services:
- "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:
Expand Down

0 comments on commit 5ceab0f

Please sign in to comment.