Revision 405a019f039494a7832bf83c8367991faad75755 authored by Roman Donchenko on 08 December 2023, 15:37:57 UTC, committed by GitHub on 08 December 2023, 15:37:57 UTC
Having both CPU and GPU images use the same image name and tag is
confusing, since you can't tell which one you have on your system
without deep inspection.
1 parent de6e50c
Raw File
docker-compose.external_db.yml
# Copyright (C) 2023 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

# This optional Docker Compose file may be used to deploy CVAT with an external database.

x-backend-settings: &backend-settings
  environment:
    CVAT_POSTGRES_HOST:
    CVAT_POSTGRES_PORT:
    CVAT_POSTGRES_DBNAME:
    CVAT_POSTGRES_USER:
    CVAT_POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
  secrets:
    - postgres_password

services:
  cvat_db:
    deploy:
      replicas: 0

  cvat_server: *backend-settings
  cvat_utils: *backend-settings
  cvat_worker_analytics_reports: *backend-settings
  cvat_worker_annotation: *backend-settings
  cvat_worker_export: *backend-settings
  cvat_worker_import: *backend-settings
  cvat_worker_quality_reports: *backend-settings
  cvat_worker_webhooks: *backend-settings

secrets:
  postgres_password:
    environment: CVAT_POSTGRES_PASSWORD
back to top