first commit
This commit is contained in:
56
docker-compose.hub.yml
Normal file
56
docker-compose.hub.yml
Normal file
@@ -0,0 +1,56 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
container_name: syntria-db-prod
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_DB: syntria_db
|
||||
POSTGRES_USER: syntria_user
|
||||
POSTGRES_PASSWORD: syntria_secure_2024
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- syntria-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U syntria_user -d syntria_db"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
backend:
|
||||
image: dymai/syntria-backend:latest
|
||||
container_name: syntria-backend-prod
|
||||
restart: always
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
DATABASE_URL: postgresql://syntria_user:syntria_secure_2024@db:5432/syntria_db
|
||||
SECRET_KEY: tu_clave_secreta_super_segura_minimo_32_caracteres_prod
|
||||
OPENAI_API_KEY: tu_api_key_de_openai
|
||||
GEMINI_API_KEY: tu_api_key_de_gemini
|
||||
ENVIRONMENT: production
|
||||
ALLOWED_ORIGINS: http://localhost,http://localhost:80
|
||||
networks:
|
||||
- syntria-network
|
||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
|
||||
|
||||
frontend:
|
||||
image: dymai/syntria-frontend:latest
|
||||
container_name: syntria-frontend-prod
|
||||
restart: always
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
- syntria-network
|
||||
|
||||
networks:
|
||||
syntria-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user