Files
whatshooked/docker-compose.yml
Hein 16aa838d91
Some checks failed
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Test (1.23) (push) Has been cancelled
CI / Test (1.22) (push) Has been cancelled
fix(docker): 🐛 Update network configuration for services
* Set network mode to bridge for the whatshooked service.
* Define external network named 'podman' for better integration.
2026-02-04 14:13:12 +02:00

55 lines
1.7 KiB
YAML

version: '3.8'
services:
whatshooked:
build:
context: .
dockerfile: Dockerfile
container_name: whatshooked-server
ports:
- "0.0.0.0:8025:8025"
volumes:
# Mount config file
- type: bind
source: ./bin/config.json
target: /app/config.json
# 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
network_mode: bridge
# 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:
default:
external: true
name: podman