docker-compose.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. version: '3'
  2. services:
  3. db:
  4. image: "postgres:alpine"
  5. restart: always
  6. volumes:
  7. - db-data:/var/lib/postgresql/data
  8. environment:
  9. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
  10. networks:
  11. - botpronet
  12. redis:
  13. image: "redis:alpine"
  14. networks:
  15. - botpronet
  16. backend:
  17. volumes:
  18. - web-migrations:/opt/web2py/applications/backend/databases/
  19. depends_on:
  20. - "db"
  21. - "redis"
  22. environment:
  23. setup_done: "false"
  24. setup_admin_user: "${setup_admin_user}"
  25. setup_admin_password: "${setup_admin_password}"
  26. db_uri: "postgres://postgres:${POSTGRES_PASSWORD}@db/postgres"
  27. WEB2PY_PASSWORD: admin
  28. WEB2PY_ADMIN_SECURITY_BYPASS: "true"
  29. db_migrate: "true"
  30. cors_allowed: '["${FRONTEND_URL}"]'
  31. image: "hub.botprotec.com/botpro/botpro-backend:${VERSION_TAG}"
  32. ports:
  33. - "${WEB_PORT}:8080"
  34. networks:
  35. - botpronet
  36. web2py-rq-worker:
  37. depends_on:
  38. - "db"
  39. - "redis"
  40. - "backend"
  41. environment:
  42. setup_done: "true"
  43. db_migrate: "false"
  44. image: "hub.botprotec.com/botpro/botpro-backend:${VERSION_TAG}"
  45. networks:
  46. - botpronet
  47. web2py-rq-worker-low:
  48. depends_on:
  49. - "db"
  50. - "redis"
  51. - "backend"
  52. environment:
  53. setup_done: "true"
  54. db_migrate: "false"
  55. redis_queue: "low"
  56. image: "hub.botprotec.com/botpro/botpro-backend-rq-worker:${VERSION_TAG}"
  57. networks:
  58. - botpronet
  59. web2py-worker:
  60. depends_on:
  61. - "db"
  62. - "redis"
  63. - "backend"
  64. environment:
  65. db_uri: "postgres://postgres:${POSTGRES_PASSWORD}@db/postgres"
  66. db_migrate: "false"
  67. image: "hub.botprotec.com/botpro/botpro-backend-w2p-worker:${VERSION_TAG}"
  68. networks:
  69. - botpronet
  70. volumes:
  71. web-migrations:
  72. db-data:
  73. networks:
  74. botpronet: