logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

nsfw-api.service (405B)


  1. [Unit]
  2. Description=NSFW API
  3. After=docker.service
  4. Requires=docker.service
  5. [Service]
  6. TimeoutStartSec=0
  7. Restart=always
  8. ExecStartPre=-/usr/bin/docker stop %n
  9. ExecStartPre=-/usr/bin/docker rm %n
  10. ExecStartPre=/usr/bin/docker pull eugencepoi/nsfw_api:latest
  11. ExecStart=/usr/bin/docker run --rm -p 127.0.0.1:5000:5000/tcp --env PORT=5000 --name %n eugencepoi/nsfw_api:latest
  12. [Install]
  13. WantedBy=multi-user.target