const.py 600 B

12345678910111213141516
  1. from __future__ import absolute_import
  2. from __future__ import unicode_literals
  3. import os
  4. import sys
  5. DEFAULT_TIMEOUT = 10
  6. HTTP_TIMEOUT = int(os.environ.get('COMPOSE_HTTP_TIMEOUT', os.environ.get('DOCKER_CLIENT_TIMEOUT', 60)))
  7. IS_WINDOWS_PLATFORM = (sys.platform == "win32")
  8. LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'
  9. LABEL_ONE_OFF = 'com.docker.compose.oneoff'
  10. LABEL_PROJECT = 'com.docker.compose.project'
  11. LABEL_SERVICE = 'com.docker.compose.service'
  12. LABEL_VERSION = 'com.docker.compose.version'
  13. LABEL_CONFIG_HASH = 'com.docker.compose.config-hash'
  14. COMPOSEFILE_VERSIONS = (1, 2)