我想设置一个专注于Dspace开发的框架,一些stackoverflow的朋友和Google搜索,显示它是如何做到的但是在命令方式。但事情就是这样:
醇>
# docker-compose.yml
version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_DB_HOST=localhost
- DSPACE_WEBAPPS="jspui xmlui rest oai rdf sword swordv2"
- CATALINA_OPTS="-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true -Xmx2048m -Xms2048m -XX:MaxPermSize=512m"
- ADMIN_EMAIL=admin@example.com
- ADMIN_PASSWD=admin123
ports:
- "5432:5432"
maven:
build:
# context le dice el directorio donde estan los archivos
context: dockerfiles
dockerfile: Dockerfile-maven
volumes:
- ~/.m2:/root/.m2
- .:/usr/src/mymaven
volumes_from:
- tomcat
tomcat:
build:
context: dockerfiles
dockerfile: Dockerfile-apache
volumes:
- ./root:/usr/local/tomcat/webapps/ROOT
ports:
- "8888:8080"
# Dockerfile-tomcat
FROM tomcat:8.0
ADD . /code
WORKDIR /code
#WORKDIR /usr/local/tomcat/webapps
COPY tomcat-users.xml $CATALINA_HOME/conf/
VOLUME $CATALINA_HOME/webapps
非常感谢!