labkey-compose22.3.yaml 1.7 KB

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