fix: database sslmode and ports
This commit is contained in:
@@ -4,20 +4,22 @@ services:
|
||||
context: ../..
|
||||
dockerfile: deploy/docker/Dockerfile
|
||||
ports:
|
||||
- "8090:8080"
|
||||
- "3001:3000"
|
||||
- "8080:8080"
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- DATABASE_URL=${DATABASE_URL:-postgres://ophion:ophion@postgres:5432/ophion}
|
||||
- CLICKHOUSE_URL=${CLICKHOUSE_URL:-clickhouse://clickhouse:9000/ophion}
|
||||
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
|
||||
- JWT_SECRET=${JWT_SECRET:-change-me-in-production}
|
||||
- ADMIN_EMAIL=${ADMIN_EMAIL:-admin@ophion.com.br}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-ophion123}
|
||||
- DATABASE_URL=postgres://ophion:ophion@postgres:5432/ophion?sslmode=disable
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- JWT_SECRET=ophion-jwt-secret-change-in-production
|
||||
- ADMIN_PASSWORD=ophion123
|
||||
depends_on:
|
||||
- postgres
|
||||
- clickhouse
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
@@ -29,12 +31,6 @@ services:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
clickhouse:
|
||||
image: clickhouse/clickhouse-server:24.1
|
||||
volumes:
|
||||
- clickhouse_data:/var/lib/clickhouse
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
volumes:
|
||||
@@ -43,5 +39,4 @@ services:
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
clickhouse_data:
|
||||
redis_data:
|
||||
|
||||
Reference in New Issue
Block a user