Docfile commited on
Commit
0917c3d
·
verified ·
1 Parent(s): bf050ef

Update docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +15 -8
docker-compose.yml CHANGED
@@ -7,22 +7,29 @@ services:
7
  ports:
8
  - "7860:7860"
9
  volumes:
10
- # Persister les logs uniquement (pas de DB SQLite)
11
  - ./logs:/var/log/apex
12
  environment:
13
  - FLASK_ENV=production
 
14
  - PYTHONPATH=/app
15
- # PostgreSQL Configuration
16
- - DATABASE_URL=postgresql://neondb_owner:npg_2ew9miZStgCn@ep-falling-union-ahdrk8h5-pooler.c-3.us-east-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require
17
- - SECRET_KEY=${SECRET_KEY:-change-this-in-production}
18
- # Lygos API
19
  - LYGOS_API_KEY=${LYGOS_API_KEY:-lygosapp-039b7ab9-5c2d-4fbc-ac5f-70154f5ad5d3}
20
  - BASE_URL=${BASE_URL:-http://localhost:7860}
 
 
 
 
21
  restart: unless-stopped
22
  healthcheck:
23
- test: ["CMD", "curl", "-f", "http://localhost:7860/"]
24
  interval: 30s
25
  timeout: 10s
26
  retries: 3
27
- start_period: 40s
28
- depends_on: []
 
 
 
 
 
7
  ports:
8
  - "7860:7860"
9
  volumes:
 
10
  - ./logs:/var/log/apex
11
  environment:
12
  - FLASK_ENV=production
13
+ - FLASK_APP=run.py
14
  - PYTHONPATH=/app
15
+ # URL PostgreSQL SIMPLIFIÉE (sans channel_binding)
16
+ - DATABASE_URL=postgresql://neondb_owner:npg_2ew9miZStgCn@ep-falling-union-ahdrk8h5-pooler.c-3.us-east-1.aws.neon.tech/neondb?sslmode=require
17
+ - SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production}
 
18
  - LYGOS_API_KEY=${LYGOS_API_KEY:-lygosapp-039b7ab9-5c2d-4fbc-ac5f-70154f5ad5d3}
19
  - BASE_URL=${BASE_URL:-http://localhost:7860}
20
+ # Options SSL pour psycopg2
21
+ - PGSSLMODE=require
22
+ - PGSSLCERT=none
23
+ - PGSSLKEY=none
24
  restart: unless-stopped
25
  healthcheck:
26
+ test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
27
  interval: 30s
28
  timeout: 10s
29
  retries: 3
30
+ start_period: 60s
31
+ logging:
32
+ driver: "json-file"
33
+ options:
34
+ max-size: "10m"
35
+ max-file: "3"