You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
version: "3.8"
|
|
|
|
services:
|
|
buffer-platform-v2:
|
|
build: .
|
|
container_name: futures-buffer-platform-v2
|
|
ports:
|
|
- "${HOST_PORT:-9600}:${CONTAINER_PORT:-8600}"
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./logs:/app/logs
|
|
- ./app/static:/app/app/static
|
|
environment:
|
|
- DATABASE_URL=sqlite+aiosqlite:///./data/buffer_v2.db
|
|
- REDIS_URL=redis://redis:6379/0
|
|
- HOST=${HOST:-0.0.0.0}
|
|
- PORT=${CONTAINER_PORT:-8600}
|
|
- CACHE_TTL_SECONDS=${CACHE_TTL:-300}
|
|
- LOG_LEVEL=${LOG_LEVEL:-INFO}
|
|
- MAX_WORKERS=${MAX_WORKERS:-2}
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- futures-network
|
|
env_file:
|
|
- .env
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: futures-redis
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis-data:/data
|
|
command: redis-server --appendonly yes
|
|
restart: unless-stopped
|
|
networks:
|
|
- futures-network
|
|
|
|
volumes:
|
|
redis-data:
|
|
|
|
networks:
|
|
futures-network:
|
|
name: buffer_platform_futures-network
|
|
external: true
|