labkey-compose22.3.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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}:/usr/local/labkey
  31. #- ${LABKEY_DIR}/labkeywebapp:/usr/local/labkey/labkeywebapp
  32. #- ${LABKEY_DIR}/modules:/usr/local/labkey/modules
  33. #- ${LABKEY_DIR}/pipeline-lib:/usr/local/labkey/pipeline-lib
  34. #- ${LABKEY_DIR}/externalModules:/usr/local/labkey/externalModules
  35. #- ${LABKEY_DIR}/files:/usr/local/labkey/files
  36. #- ${TOMCAT_DIR}:/usr/local/tomcat
  37. #- ${TOMCAT_DIR}/conf/server.xml:/usr/local/tomcat/conf/server.xml
  38. #- ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
  39. #- ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
  40. #- ${TOMCAT_DIR}/conf/key.pem:/usr/local/tomcat/conf/key.pem
  41. #- ${TOMCAT_DIR}/conf/cert.pem:/usr/local/tomcat/conf/cert.pem
  42. #- ${TOMCAT_DIR}/conf/ca-chain.pem:/usr/local/tomcat/conf/ca-chain.pem
  43. - ${TOMCAT_DIR}/lib/labkeyBootstrap.jar:/usr/local/tomcat/lib/labkeyBootstrap.jar
  44. - ${TOMCAT_DIR}/lib/javax.activation.jar:/usr/local/tomcat/lib/javax.activation.jar
  45. - ${TOMCAT_DIR}/lib/mail.jar:/usr/local/tomcat/lib/mail.jar
  46. - ${TOMCAT_DIR}/conf/Catalina/localhost/labkey.xml:/usr/local/tomcat/conf/Catalina/localhost/labkey.xml
  47. ports:
  48. - 8081:8080
  49. - 8444:8443
  50. networks:
  51. default:
  52. external:
  53. name: labkey_network