docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. version: '3'
  2. services:
  3. redis:
  4. image: redis:latest
  5. volumes:
  6. - /docker-filesystem/httpd/redis:/data
  7. restart: always
  8. ports:
  9. - 8002:6379
  10. captcha:
  11. image: registry.scw.systems/captcha:1.2.5.1
  12. restart: always
  13. environment:
  14. - COOKIE_NAME=hicludes
  15. - COOKIE_KEY=DydmRdMMZWcRF91mNj/CWLPzzQQi5Rew0cBP0qiBUZI=
  16. - BIND=0.0.0.0
  17. - REDIS_HOST=redis
  18. - REDIS_PORT=6379
  19. - HUMAN_TTL=10m
  20. ports:
  21. - 8003:8080
  22. apache:
  23. image: httpd-lua:latest
  24. depends_on:
  25. - redis
  26. volumes:
  27. - ./httpd-lua.conf:/usr/local/apache2/conf/extra/httpd-lua.conf
  28. - ./htdocs:/usr/local/apache2/htdocs
  29. - ./lua:/usr/local/apache2/lua
  30. # - /docker-filesystem/httpd/apache/httpd-lua.conf:/usr/local/apache2/conf/extra/httpd-lua.conf
  31. # - /docker-filesystem/httpd/apache/htdocs:/usr/local/apache2/htdocs
  32. # - /docker-filesystem/httpd/apache/lua:/usr/local/apache2/lua
  33. environment:
  34. - SCW_IGNORE=(^/assets/|\.(png|jpe?g|svg|gif|js|css)$$)
  35. - SCW_KEY=DydmRdMMZWcRF91mNj/CWLPzzQQi5Rew0cBP0qiBUZI=
  36. - SCW_COOKIE=hicludes
  37. - SCW_CAPTCHA_URL=http://docker.scw.systems:8003/?src=%s&r=%s
  38. - SCW_REDIS_HOST=redis
  39. - SCW_REDIS_PORT=6379
  40. - SCW_TEST=yes
  41. ports:
  42. - 8001:80
  43. restart: always