services: tile-builder: build: context: . target: tile-builder environment: SOURCE_DIR: /app/source DATA_DIR: /var/lib/arma-tiles TILES_DIR: /output/tiles MAPS_CONFIG: /app/config/maps.json GDAL2TILES_PROCESSES: ${GDAL2TILES_PROCESSES:-1} CALLBACK_PROVIDER: ${CALLBACK_PROVIDER:-} volumes: - ${ARMA_TILES_SOURCE_DIR:-./source}:/app/source:ro - arma_tiles_data:/var/lib/arma-tiles - ./tiles:/output/tiles restart: "no" tiles: build: context: . target: tile-server depends_on: tile-builder: condition: service_completed_successfully ports: - "${HTTP_PORT:-9000}:80" environment: CALLBACK_PROVIDER: ${CALLBACK_PROVIDER:-} volumes: - ./tiles:/var/lib/arma-tiles/tiles:ro - callback_provider_cache:/var/cache/nginx volumes: arma_tiles_data: callback_provider_cache: