123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- version: '3'
- services:
- db:
- image: "postgres:alpine"
- restart: always
- volumes:
- - db-data:/var/lib/postgresql/data
- environment:
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
- networks:
- - botpronet
- redis:
- image: "redis:alpine"
- networks:
- - botpronet
- backend:
- volumes:
- - web-migrations:/opt/web2py/applications/backend/databases/
- depends_on:
- - "db"
- - "redis"
- environment:
- setup_done: "false"
- setup_admin_email: "${setup_admin_email}"
- setup_admin_password: "${setup_admin_password}"
- db_uri: "postgres://postgres:${POSTGRES_PASSWORD}@db/postgres"
- WEB2PY_PASSWORD: "${setup_admin_password}"
- WEB2PY_ADMIN_SECURITY_BYPASS: "true"
- db_migrate: "true"
- cors_allowed: '["${FRONTEND_URL}"]'
- image: "hub.botprotec.com/botpro/botpro-backend:${VERSION_TAG}"
- ports:
- - "${WEB_PORT}:8080"
- networks:
- - botpronet
- web2py-rq-worker:
- depends_on:
- - "db"
- - "redis"
- - "backend"
- environment:
- setup_done: "true"
- db_migrate: "false"
- image: "hub.botprotec.com/botpro/botpro-backend:${VERSION_TAG}"
- networks:
- - botpronet
- web2py-rq-worker-low:
- depends_on:
- - "db"
- - "redis"
- - "backend"
- environment:
- setup_done: "true"
- db_migrate: "false"
- redis_queue: "low"
- image: "hub.botprotec.com/botpro/botpro-backend-rq-worker:${VERSION_TAG}"
- networks:
- - botpronet
- web2py-worker:
- depends_on:
- - "db"
- - "redis"
- - "backend"
- environment:
- db_uri: "postgres://postgres:${POSTGRES_PASSWORD}@db/postgres"
- db_migrate: "false"
- image: "hub.botprotec.com/botpro/botpro-backend-w2p-worker:${VERSION_TAG}"
- networks:
- - botpronet
- volumes:
- web-migrations:
- db-data:
- networks:
- botpronet:
|