Obj str do it (#255)
soaricarus_api CI / Clippy (push) Successful in 3m59s
soaricarus_api CI / Rustfmt (push) Successful in 4m32s
soaricarus_api CI / Check (push) Successful in 4m44s
soaricarus_api CI / Test Suite (push) Failing after 5m24s
soaricarus_api CI / build (push) Successful in 6m4s
soaricarus_api CI / Clippy (push) Successful in 3m59s
soaricarus_api CI / Rustfmt (push) Successful in 4m32s
soaricarus_api CI / Check (push) Successful in 4m44s
soaricarus_api CI / Test Suite (push) Failing after 5m24s
soaricarus_api CI / build (push) Successful in 6m4s
Reviewed-on: #255
This commit was merged in pull request #255.
This commit is contained in:
+77
-1
@@ -6,14 +6,20 @@ services:
|
||||
build:
|
||||
context: .
|
||||
ssh: ["default"]
|
||||
container_name: soaricarus
|
||||
container_name: api
|
||||
ports:
|
||||
- "8000:8000"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- shared_credentials:/shared:ro # Mount as read-only
|
||||
depends_on:
|
||||
main_db:
|
||||
condition: service_healthy
|
||||
maze:
|
||||
condition: service_started
|
||||
auth_api:
|
||||
condition: service_started
|
||||
networks:
|
||||
- soaricarus-network
|
||||
restart: unless-stopped
|
||||
@@ -54,9 +60,75 @@ services:
|
||||
- main_db
|
||||
- auth_api
|
||||
- auth_db
|
||||
- maze
|
||||
networks:
|
||||
- soaricarus-network
|
||||
|
||||
# --- storage service ---
|
||||
maze:
|
||||
image: dxflrs/garage:v2.3.0 # Use official Garage image
|
||||
container_name: maze
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# Garage configuration via environment variables
|
||||
GARAGE_SERVER_BIND_ADDR: "0.0.0.0:3900"
|
||||
GARAGE_SERVER_BIND_PUBLIC_ADDR: "0.0.0.0:3901"
|
||||
GARAGE_S3_API_BIND_ADDR: "0.0.0.0:3900"
|
||||
GARAGE_S3_API_PUBLIC_BIND_ADDR: "0.0.0.0:3901"
|
||||
GARAGE_S3_API_PUBLIC_ADDRS: "http://localhost:3901"
|
||||
GARAGE_S3_API_ROOT_DOMAIN: "${GARAGE_ROOT_DOMAIN}"
|
||||
GARAGE_ADMIN_BIND_ADDR: "0.0.0.0:3902"
|
||||
GARAGE_ADMIN_PUBLIC_BIND_ADDR: "0.0.0.0:3902"
|
||||
|
||||
# Cluster configuration (single node for simplicity)
|
||||
GARAGE_CLUSTER_REPLICATION_MODE: "none" # Single node
|
||||
GARAGE_CLUSTER_PEER_REPLICATION_STRATEGY: "ring"
|
||||
|
||||
# Data storage
|
||||
GARAGE_DATA_DIR: "/data"
|
||||
GARAGE_METADATA_DIR: "/data/meta"
|
||||
|
||||
# RPC configuration
|
||||
GARAGE_RPC_PUBLIC_ADDR: "http://maze:3901"
|
||||
GARAGE_RPC_BIND_ADDR: "0.0.0.0:3901"
|
||||
GARAGE_RPC_SECRET: "${GARAGE_RPC_SECRET}" # 32+ chars
|
||||
|
||||
# Web Admin
|
||||
GARAGE_ADMIN_TOKEN: "${GARAGE_ADMIN_TOKEN}"
|
||||
|
||||
# Logging
|
||||
GARAGE_LOG_LEVEL: "info"
|
||||
|
||||
GARAGE_S3_BUCKET: "${S3_BUCKET_NAME}"
|
||||
GARAGE_S3_REGION: "${GARAGE_S3_REGION}"
|
||||
|
||||
GARAGE_DEFAULT_ACCESS_KEY: "${GARAGE_DEFAULT_ACCESS_KEY}"
|
||||
GARAGE_DEFAULT_SECRET_KEY: "${GARAGE_DEFAULT_SECRET_KEY}"
|
||||
GARAGE_DEFAULT_BUCKET: "${GARAGE_DEFAULT_BUCKET}"
|
||||
|
||||
AWS_ACCESS_KEY_ID: "${GARAGE_DEFAULT_ACCESS_KEY}"
|
||||
AWS_SECRET_ACCESS_KEY: "${GARAGE_DEFAULT_SECRET_KEY}"
|
||||
AWS_DEFAULT_REGION: "${GARAGE_DEFAULT_BUCKET}"
|
||||
AWS_S3_FORCE_PATH_STYLE: "true"
|
||||
|
||||
volumes:
|
||||
- ./garage.toml:/etc/garage.toml:ro # Mount config file
|
||||
- shared_credentials:/data # Persist Garage data
|
||||
ports:
|
||||
- "3900:3900" # S3 API
|
||||
- "3901:3901" # S3 API public
|
||||
- "3902:3902" # Admin API
|
||||
command: ["/garage", "server", "--single-node", "--default-bucket"]
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3900/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
networks:
|
||||
- soaricarus-network
|
||||
extra_hosts:
|
||||
- "garage.local:127.0.0.1"
|
||||
|
||||
# PostgreSQL Database Service
|
||||
main_db:
|
||||
@@ -113,6 +185,10 @@ volumes:
|
||||
driver: local # Use the default local driver
|
||||
postgres_data_auth:
|
||||
driver: local # Use the default local driver
|
||||
object_data:
|
||||
driver: local # Use the default local driver
|
||||
shared_credentials: # New shared volume
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
soaricarus-network:
|
||||
|
||||
Reference in New Issue
Block a user