1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/splash/docker-stack.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

2019-11-11 15:42:43 +00:00
version: '3.7'
2019-06-26 21:15:23 +00:00
services:
splash:
2019-11-11 15:42:43 +00:00
image: scrapinghub/splash:3.4
2019-06-26 21:15:23 +00:00
command: --maxrss 2048 --max-timeout 300 --disable-lua-sandbox --verbosity 1
ports:
- "8050:8050"
volumes:
- splash_filters:/etc/splash/filters
- splash_js-profiles:/etc/splash/js-profiles
- splash_lua_modules:/etc/splash/lua_modules
- splash_proxy-profiles:/etc/splash/proxy-profiles
deploy:
resources:
limits:
memory: 2560M
replicas: 8
placement:
constraints:
- node.role == worker
restart_policy:
condition: on-failure
2019-11-11 15:42:43 +00:00
2019-06-26 21:15:23 +00:00
volumes:
splash_filters:
driver: local
driver_opts:
type: nfs
o: "addr=10.0.0.96,nolock,soft,ro"
device: ":/export/splash/filters"
splash_js-profiles:
driver: local
driver_opts:
type: nfs
o: "addr=10.0.0.96,nolock,soft,ro"
device: ":/export/splash/js-profiles"
splash_lua_modules:
driver: local
driver_opts:
type: nfs
o: "addr=10.0.0.96,nolock,soft,ro"
device: ":/export/splash/lua_modules"
splash_proxy-profiles:
driver: local
driver_opts:
type: nfs
o: "addr=10.0.0.96,nolock,soft,ro"
device: ":/export/splash/proxy-profiles"
2019-11-11 15:42:43 +00:00
2019-06-26 21:15:23 +00:00
networks:
default:
ipam:
config:
- subnet: 192.168.126.0/24