docker files added
This commit is contained in:
parent
d672386824
commit
6d3e9394c4
|
@ -0,0 +1,8 @@
|
|||
|
||||
FROM luciolelii/smartgears:3.4.3-SNAPSHOT
|
||||
COPY ./target/storagehub.war /usr/local/tomcat/webapps/
|
||||
COPY ./docker/jackrabbit /app/jackrabbit
|
||||
COPY ./docker/storagehub.xml /usr/local/tomcat/conf/Catalina/localhost/
|
||||
RUN unzip /usr/local/tomcat/webapps/storagehub.war -d /usr/local/tomcat/webapps/storagehub
|
||||
RUN sed -i 's/<root /<logger name="org.gcube.data.access.storagehub" level="DEBUG" \/>\n <root /g' /usr/local/tomcat/lib/logback.xml
|
||||
RUN sed -i 's/${{adminId}}/workspace/g; s/${{adminPwd}}/gcube/g' /usr/local/tomcat/webapps/storagehub/WEB-INF/web.xml
|
|
@ -0,0 +1,23 @@
|
|||
version: '3.7'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:10.5
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_DB=workspace-db
|
||||
- POSTGRES_USER=ws-db-user
|
||||
- POSTGRES_PASSWORD=dbPwd
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
ports:
|
||||
- '5423:5432'
|
||||
volumes:
|
||||
- ./postgres-data:/var/lib/postgresql/data
|
||||
# copy the sql script to create tables
|
||||
# - ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
|
||||
storagehub:
|
||||
build: .
|
||||
ports:
|
||||
- '8080:8080'
|
Loading…
Reference in New Issue