-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompose.stable.yml
More file actions
67 lines (63 loc) · 1.64 KB
/
compose.stable.yml
File metadata and controls
67 lines (63 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Docker Compose override for stable builds
# This file ensures consistent Python versions and build arguments
services:
api:
build:
context: .
dockerfile: docker/api/Dockerfile
args:
PYTHON_VERSION: 3.12.7
cache_from:
- python:3.12.7-slim
environment:
# Override environment for stability
PYTHON_VERSION: 3.12.7
BUILD_TYPE: stable
DEPENDENCY_CHECK: enabled
healthcheck:
test: ["CMD", "/usr/local/bin/health-check"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
worker-cpu:
build:
context: .
dockerfile: docker/worker/Dockerfile
args:
WORKER_TYPE: cpu
PYTHON_VERSION: 3.12.7
cache_from:
- python:3.12.7-slim
environment:
PYTHON_VERSION: 3.12.7
WORKER_TYPE: cpu
BUILD_TYPE: stable
worker-gpu:
build:
context: .
dockerfile: docker/worker/Dockerfile
args:
WORKER_TYPE: gpu
PYTHON_VERSION: 3.12.7
cache_from:
- nvidia/cuda:12.3.0-runtime-ubuntu22.04
environment:
PYTHON_VERSION: 3.12.7
WORKER_TYPE: gpu
BUILD_TYPE: stable
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: video,compute,utility
# Add build validation service
build-validator:
image: python:3.12.7-slim
command: |
sh -c "
echo '=== Build Validation Service ==='
python --version
echo 'Testing psycopg2 import...'
python -c 'import psycopg2; print(\"psycopg2 version:\", psycopg2.__version__)'
echo 'All validations passed!'
"
profiles:
- validation