docker-compose.yml 825 B

12345678910111213141516171819202122232425262728293031323334
  1. version: "3.7"
  2. services:
  3. pixivfe:
  4. container_name: pixivfe
  5. hostname: pixivfe
  6. restart: unless-stopped
  7. user: 1000:1000
  8. read_only: true
  9. security_opt:
  10. - no-new-privileges:true
  11. cap_drop:
  12. - ALL
  13. build:
  14. context: .
  15. dockerfile: Dockerfile
  16. ports:
  17. - "8282:8282" # Specify `127.0.0.1:8282:8282` instead if using a reverse proxy
  18. env_file: .env
  19. healthcheck:
  20. test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://127.0.0.1:8282/about"]
  21. interval: 30s
  22. timeout: 3s
  23. start_period: 15s
  24. retries: 3
  25. secrets:
  26. - pixivfe_token
  27. secrets:
  28. pixivfe_token:
  29. # Copy the contents of the `PHPSESSID` cookie into `pixivfe_token.txt`
  30. # See ./doc/How-to-get-the-pixiv-token.md for instructions
  31. file: ./docker/pixivfe_token.txt