REPO-3046 Add docker configuration for full stack

This commit is contained in:
Alex Mukha
2017-11-20 14:18:19 +00:00
parent ebbd876999
commit 645f0ce957
5 changed files with 199 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
FROM docker-internal.alfresco.com/full-content-services-community:latest
RUN echo -e '\n\
db.driver=org.postgresql.Driver\n\
db.username=alfresco\n\
db.password=alfresco\n\
db.url=jdbc:postgresql://postgres:5432/alfresco\n\
\n\
solr.host=solr6\n\
solr.port=8983\n\
solr.secureComms=none\n\
solr.base.url=/solr\n\
index.subsystem.name=solr6\n\
' >> /usr/local/tomcat/shared/classes/alfresco-global.properties

View File

@@ -0,0 +1,41 @@
version: "3"
services:
alfresco:
build:
context: ./alfresco
environment:
- db.driver=org.postgresql.Driver
- db.username=alfresco
- db.password=alfresco
- db.url=jdbc:postgresql://postgres:5432/alfresco
- solr.host=solr6
- solr.port=8983
- solr.secureComms=none
- solr.base.url=/solr
- index.subsystem.name=solr6
ports:
- 8080:8080 #Browser port
postgres:
image: docker.io/library/postgres:9.4.12
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
ports:
- 5432:5432
solr6:
image: docker-internal.alfresco.com/search-services:1.1.0
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=8080
#Alfresco needs to know how to call solr
- SOLR_SOLR_HOST=solr6
- SOLR_SOLR_PORT=8983
#Create the default alfresco and archive cores
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
ports:
- 8083:8983 #Browser port