# The version property is now optional in modern Docker Compose # version: '3.8' name: wwebjs-api services: api: image: avoylenko/wwebjs-api:latest container_name: wwebjs-api restart: always ports: - "3000:3000" env_file: .env volumes: - ./sessions:/usr/src/app/sessions # Optional healthcheck # healthcheck: # test: ["CMD", "curl", "-f", "http://localhost:3000/health"] # interval: 30s # timeout: 10s # retries: 3 # start_period: 40s