|
|
version: '3.8' |
|
|
|
|
|
services: |
|
|
openai-proxy: |
|
|
build: |
|
|
context: . |
|
|
dockerfile: Dockerfile.python.optimized |
|
|
container_name: openai-proxy-python |
|
|
ports: |
|
|
- "8080:8080" |
|
|
environment: |
|
|
|
|
|
- DEBUG_MODE=false |
|
|
- PORT=8080 |
|
|
|
|
|
restart: unless-stopped |
|
|
healthcheck: |
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/models"] |
|
|
interval: 30s |
|
|
timeout: 10s |
|
|
retries: 3 |
|
|
start_period: 40s |
|
|
networks: |
|
|
- proxy-network |
|
|
|
|
|
|
|
|
web-test: |
|
|
image: nginx:alpine |
|
|
container_name: proxy-web-test |
|
|
ports: |
|
|
- "8081:80" |
|
|
volumes: |
|
|
- ./test-page:/usr/share/nginx/html:ro |
|
|
depends_on: |
|
|
- openai-proxy |
|
|
networks: |
|
|
- proxy-network |
|
|
profiles: |
|
|
- test-ui |
|
|
|
|
|
networks: |
|
|
proxy-network: |
|
|
driver: bridge |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|