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