labkey-compose22.3.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. services:
  2. db:
  3. image: postgres:14.2
  4. volumes:
  5. - ${POSTGRES_DIR}:/var/lib/postgresql/data
  6. environment:
  7. - POSTGRES_USER=postgres
  8. - POSTGRES_PASSWORD=$PGPASS
  9. ports:
  10. - '5432'
  11. web:
  12. depends_on:
  13. - db
  14. #image: tomcat:9-jdk17-temurin
  15. build: .
  16. volumes:
  17. - ${LABKEY_DIR}/labkeywebapp:/usr/local/labkey/labkeywebapp
  18. - ${LABKEY_DIR}/modules:/usr/local/labkey/modules
  19. - ${LABKEY_DIR}/pipeline-lib:/usr/local/labkey/pipeline-lib
  20. - ${LABKEY_DIR}/externalModules:/usr/local/labkey/externalModules
  21. - ${LABKEY_DIR}/files:/usr/local/labkey/files
  22. - ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
  23. - ${TOMCAT_DIR}/conf/server.xml:/usr/local/tomcat/conf/server.xml
  24. - ${TOMCAT_DIR}/conf/key.pem:/usr/local/tomcat/conf/key.pem
  25. - ${TOMCAT_DIR}/conf/cert.pem:/usr/local/tomcat/conf/cert.pem
  26. - ${TOMCAT_DIR}/conf/ca-chain.pem:/usr/local/tomcat/conf/ca-chain.pem
  27. - ${LABKEY_DIR}/tomcat-lib/labkeyBootstrap.jar:/usr/local/tomcat/lib/labkeyBootstrap.jar
  28. - ${LABKEY_DIR}/tomcat-lib/javax.activation.jar:/usr/local/tomcat/lib/javax.activation.jar
  29. - ${LABKEY_DIR}/tomcat-lib/mail.jar:/usr/local/tomcat/lib/mail.jar
  30. - ${LABKEY_DIR}/labkey.xml:/usr/local/tomcat/conf/Catalina/localhost/labkey.xml
  31. ports:
  32. - '8080:8080'
  33. - '8443:8443'
  34. networks:
  35. default:
  36. external:
  37. name: labkey_network