switch from postgresql to mysql

This commit is contained in:
Brian Long 2020-12-21 13:57:03 -05:00
parent f46dacad9d
commit b01b78f842

View File

@ -9,10 +9,10 @@ services:
mem_limit: 1700m mem_limit: 1700m
environment: environment:
JAVA_OPTS: " JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver -Ddb.driver=com.mysql.jdbc.Driver
-Ddb.username=alfresco -Ddb.username=alfresco
-Ddb.password=alfresco -Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco -Ddb.url=jdbc:postgresql://mysql-acs:3306/alfresco
-Dindex.subsystem.name=solr6 -Dindex.subsystem.name=solr6
-Dsolr.host=search -Dsolr.host=search
-Dsolr.port=8983 -Dsolr.port=8983
@ -40,10 +40,11 @@ services:
-Djodconverter.enabled=false -Djodconverter.enabled=false
" "
depends_on: depends_on:
- postgres-acs - mysql-acs
- activemq - activemq
volumes: volumes:
- acsbin-volume:/usr/local/tomcat/alf_data:rw - acsbin-volume:/usr/local/tomcat/alf_data:rw
- /usr/share/java/mysql.jar:/usr/local/tomcat/lib/mysql.jar:ro
transform-core-aio: transform-core-aio:
image: alfresco/alfresco-transform-core-aio:2.3.6 image: alfresco/alfresco-transform-core-aio:2.3.6
@ -58,16 +59,16 @@ services:
-Dalfresco.port=8080 -Dalfresco.port=8080
" "
postgres-acs: mysql-acs:
image: postgres:11.7 image: mysql:5.7
mem_limit: 512m mem_limit: 512m
environment: environment:
- POSTGRES_PASSWORD=alfresco - MYSQL_RANDOM_ROOT_PASSWORD=true
- POSTGRES_USER=alfresco - MYSQL_PASSWORD=alfresco
- POSTGRES_DB=alfresco - MYSQL_USER=alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG - MYSQL_DATABASE=alfresco
volumes: volumes:
- acsdb-volume:/var/lib/postgresql/data:rw - acsdb-volume:/var/lib/mysql:rw
search: search:
image: alfresco/alfresco-search-services:2.0.1 image: alfresco/alfresco-search-services:2.0.1
@ -106,3 +107,4 @@ volumes:
driver: local driver: local
solrindex-volume: solrindex-volume:
driver: local driver: local