devops folders consolidate
This commit is contained in:
@@ -1,33 +1,62 @@
|
||||
version: "3.9"
|
||||
# =============================================================================
|
||||
# SYMBOLS SERVER - LOCAL DEVELOPMENT STACK
|
||||
# =============================================================================
|
||||
# Symbols server local development environment with PostgreSQL and RustFS.
|
||||
#
|
||||
# Usage:
|
||||
# docker compose -f docker-compose.symbols.yaml up -d
|
||||
#
|
||||
# For production, use compose/docker-compose.stella-ops.yml instead.
|
||||
# =============================================================================
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:7.0
|
||||
restart: unless-stopped
|
||||
command: ["mongod", "--bind_ip_all"]
|
||||
ports:
|
||||
- "27017:27017"
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2024-08-17T00-00-00Z
|
||||
postgres:
|
||||
image: postgres:18.1-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MINIO_ROOT_USER: minio
|
||||
MINIO_ROOT_PASSWORD: minio123
|
||||
command: server /data --console-address :9001
|
||||
POSTGRES_USER: symbols
|
||||
POSTGRES_PASSWORD: ${SYMBOLS_DB_PASSWORD:-symbols_dev}
|
||||
POSTGRES_DB: symbols
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U symbols -d symbols"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
rustfs:
|
||||
image: registry.stella-ops.org/stellaops/rustfs:2025.09.2
|
||||
restart: unless-stopped
|
||||
command: ["serve", "--listen", "0.0.0.0:8080", "--root", "/data"]
|
||||
environment:
|
||||
RUSTFS__LOG__LEVEL: info
|
||||
RUSTFS__STORAGE__PATH: /data
|
||||
volumes:
|
||||
- rustfs-data:/data
|
||||
ports:
|
||||
- "9000:8080"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
symbols:
|
||||
image: ghcr.io/stella-ops/symbols-server:edge
|
||||
depends_on:
|
||||
- mongo
|
||||
- minio
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
rustfs:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
Mongo__ConnectionString: mongodb://mongo:27017/symbols
|
||||
Storage__Driver: postgres
|
||||
Storage__Postgres__ConnectionString: "Host=postgres;Port=5432;Database=symbols;Username=symbols;Password=${SYMBOLS_DB_PASSWORD:-symbols_dev}"
|
||||
Storage__Provider: S3
|
||||
Storage__S3__Endpoint: http://minio:9000
|
||||
Storage__S3__Endpoint: http://rustfs:8080
|
||||
Storage__S3__Bucket: symbols
|
||||
Storage__S3__AccessKeyId: minio
|
||||
Storage__S3__SecretAccessKey: minio123
|
||||
Storage__S3__UsePathStyle: "true"
|
||||
Logging__Console__FormatterName: json
|
||||
ports:
|
||||
@@ -38,6 +67,11 @@ services:
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
rustfs-data:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: symbols-ci
|
||||
|
||||
@@ -3,16 +3,14 @@ image:
|
||||
repository: ghcr.io/stella-ops/symbols-server
|
||||
tag: edge
|
||||
|
||||
mongodb:
|
||||
postgres:
|
||||
enabled: true
|
||||
connectionString: "mongodb://mongo:27017/symbols"
|
||||
connectionString: "Host=postgres;Port=5432;Database=symbols;Username=stellaops;Password=stellaops"
|
||||
|
||||
minio:
|
||||
rustfs:
|
||||
enabled: true
|
||||
endpoint: "http://minio:9000"
|
||||
endpoint: "http://rustfs:8080"
|
||||
bucket: "symbols"
|
||||
accessKey: "minio"
|
||||
secretKey: "minio123"
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user