Update docker-compose.yml
Browse files- docker-compose.yml +8 -3
docker-compose.yml
CHANGED
|
@@ -7,13 +7,17 @@ services:
|
|
| 7 |
ports:
|
| 8 |
- "7860:7860"
|
| 9 |
volumes:
|
| 10 |
-
# Persister
|
| 11 |
-
- ./instance:/app/instance
|
| 12 |
-
# Persister les logs
|
| 13 |
- ./logs:/var/log/apex
|
| 14 |
environment:
|
| 15 |
- FLASK_ENV=production
|
| 16 |
- PYTHONPATH=/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
restart: unless-stopped
|
| 18 |
healthcheck:
|
| 19 |
test: ["CMD", "curl", "-f", "http://localhost:7860/"]
|
|
@@ -21,3 +25,4 @@ services:
|
|
| 21 |
timeout: 10s
|
| 22 |
retries: 3
|
| 23 |
start_period: 40s
|
|
|
|
|
|
| 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/"]
|
|
|
|
| 25 |
timeout: 10s
|
| 26 |
retries: 3
|
| 27 |
start_period: 40s
|
| 28 |
+
depends_on: []
|