Let's secure your containers
Docker Compose
1. Login to the server you wish to install Phonito on via SSH
2. Get an API token from https://phonito.io/setup
3. Edit your `docker-compose.yml` configuration to include the config below
4. Deploy by running `docker-compose up`
5. Verify that Phonito is working by running `docker ps` and verifying that `phonito-scanner` is running
version: "3.7" services: phonito: image: phonito/scanner network_mode: host volumes: - /var/run/docker.sock:/var/run/docker.sock - /:/hostfs:ro environment: # Register to get a token PHONITO_API_TOKEN: "GET YOUR API TOKEN HERE https://phonito.io/setup" cap_add: - SYS_ADMIN - SYS_PTRACE # Support Non Swarm restart: unless-stopped # Support Docker Swarm deploy: restart_policy: condition: unless-stopped delay: 5s max_attempts: 3 window: 30s
Copyright Phonito 2021