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