DockFlare/docker-compose.yml
martadams89 56365fe318 Enhance Docker setup for Tailwind CSS integration and update Flask app configuration
- Install Node.js and npm in Dockerfile for Tailwind CSS compilation
- Copy Tailwind CSS files and build CSS during Docker image creation
- Update docker-compose.yml to support dynamic BASE_URL for CSS loading
- Remove deprecated BASE_URL configuration from env.example
- Delete unused dockflare.css file and integrate Tailwind CSS directly
- Update status_page.html to load compiled Tailwind CSS with CDN fallback
- Create main.css for Tailwind directives and custom styles
- Add tailwind.config.js for Tailwind configuration
2025-04-20 18:28:51 +01:00

25 lines
No EOL
819 B
YAML

version: '3.8'
services:
cloudflare-tunnel-manager:
build: . # for building local docker image
container_name: dockflare
# image: alplat/dockflare:stable # The pre-built Docker image (`alplat/dockflare:stable`) is currently only available for `x86_64` / `amd64` architectures.
restart: unless-stopped
ports:
- "5000:5000"
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- dockflare_data:/app/data
networks:
- cloudflare-net
environment:
- STATE_FILE_PATH=/app/data/state.json
- TZ=Europe/Zurich # Set the timezone to Zurich
- BASE_URL=${BASE_URL:-http://localhost:5000} # Add BASE_URL for proper CSS loading behind reverse proxy
volumes:
dockflare_data:
networks:
cloudflare-net:
name: cloudflare-net