services: wa: build: context: . dockerfile: Dockerfile container_name: wa restart: always environment: IS_POSTGRES: "true" POSTGRES_USER: "test" POSTGRES_PASS: "test" POSTGRES_HOST: "postgres" POSTGRES_PORT: "5432" # Replace with two strong, independent random strings before bringing the stack up. # Suggested: openssl rand -base64 64 | tr -d '\n=' | tr '/+' '_-' | head -c 64 API_KEY: "CHANGE_ME_TO_A_LONG_RANDOM_STRING_AT_LEAST_64_CHARS_______________" JWT_SECRET: "CHANGE_ME_TO_A_DIFFERENT_LONG_RANDOM_STRING_AT_LEAST_64_CHARS____" # Optional: set this to forward every inbound message to a webhook (e.g. n8n). # WEBHOOK_URL: "http://your-host:5678/webhook/whatsapp" ports: - "8080:8080" volumes: - media:/project/store depends_on: - postgres deploy: resources: limits: cpus: "1" memory: "128M" reservations: cpus: "0.5" memory: "64M" postgres: image: postgres:16 container_name: postgres restart: always environment: POSTGRES_USER: "test" POSTGRES_PASSWORD: "test" POSTGRES_DB: "whatsapp" ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data volumes: media: pgdata: