50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
api:
|
|
build: .
|
|
container_name: evo-ai-api
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- POSTGRES_CONNECTION_STRING=postgresql://postgres:postgres@postgres:5432/evo_ai
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- REDIS_PASSWORD=
|
|
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
|
|
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
|
|
- EMAIL_FROM=${EMAIL_FROM}
|
|
- APP_URL=${APP_URL}
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
image: postgres:14-alpine
|
|
container_name: evo-ai-postgres
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=evo_ai
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: evo-ai-redis
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|