Files
whatshooked/docker-compose.yml
Hein c1dbff318d
Some checks failed
CI / Test (1.22) (push) Failing after -24m19s
CI / Test (1.23) (push) Failing after -24m15s
CI / Lint (push) Successful in -26m35s
CI / Build (push) Successful in -26m34s
feat(docker): 🚀 Update server port to 8025
- Change default server port from 8080 to 8025 across all configurations.
- Update Dockerfile, docker-compose.yml, and related documentation.
- Ensure all CLI commands and API endpoints reflect the new port.
- Adjust example configurations and health check URLs accordingly.
2026-02-04 13:37:38 +02:00

52 lines
1.2 KiB
YAML

version: '3.8'
services:
whatshooked:
build:
context: .
dockerfile: Dockerfile
container_name: whatshooked-server
ports:
- "8025:8025"
volumes:
# Mount config file
- ./bin/config.json:/app/config.json:ro
# Mount sessions directory for WhatsApp authentication persistence
- ./bin/sessions:/app/sessions
# Mount data directory for storing data files
- ./bin/data/:/app/data/
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8025/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Environment variables (optional - can override config.json settings)
# environment:
# - LOG_LEVEL=info
# Use host network mode if you need QR code scanning via terminal
# network_mode: "host"
# Resource limits (optional)
# deploy:
# resources:
# limits:
# cpus: '1.0'
# memory: 512M
# reservations:
# cpus: '0.25'
# memory: 128M
# Optional: Add networks for more complex setups
# networks:
# whatshooked-network:
# driver: bridge