Files
maps/docker-compose.yml
Dongho Kim 3885ddd977 udpate sick
2025-12-22 04:33:54 +09:00

65 lines
1.3 KiB
YAML

services:
scylla:
image: scylladb/scylla:latest
container_name: scylla
command: --smp 1 --memory 2G --overprovisioned 1 --api-address 0.0.0.0 --max-memory-for-unlimited-query-soft-limit 1073741824 --tombstone-warn-threshold 10000000
volumes:
- scylla_data:/var/lib/scylla
networks:
- maps-net
redis:
image: redis:7-alpine
container_name: map-redis
command: redis-server --maxmemory 2gb --maxmemory-policy allkeys-lru
volumes:
- redis_data:/data
networks:
- maps-net
restart: always
app:
build:
context: .
target: backend
container_name: map-app
ports:
- "3000:3000"
depends_on:
- scylla
- redis
environment:
- REDIS_URI=redis://redis:6379
networks:
- maps-net
restart: always
importer:
build:
context: .
target: importer
container_name: map-importer
volumes:
- ${HOST_PBF_PATH:-./europe-latest.osm.pbf}:/app/data.osm.pbf
- ${HOST_CACHE_DIR:-./cache}:/cache
environment:
- SCYLLA_URI=scylla:9042
- OSM_PBF_PATH=/app/data.osm.pbf
- CACHE_DIR=/cache
- DEBUG_WAY_ID=99
- VERBOSE_DEBUG=1
depends_on:
- scylla
networks:
- maps-net
profiles:
- import
networks:
maps-net:
driver: bridge
volumes:
scylla_data:
redis_data: