Spaces:
Runtime error
Runtime error
Niv Sardi
commited on
Commit
·
5a84a2a
1
Parent(s):
76f3705
docker-compose: re-enable puppet and browserless
Browse files- docker-compose.yaml +32 -29
docker-compose.yaml
CHANGED
@@ -20,6 +20,38 @@ services:
|
|
20 |
entrypoint: ["sh", "-c", "while true; do geckodriver --binary=/opt/firefox/firefox --log warn --port 4444 --host 0.0.0.0; sleep 2; done"]
|
21 |
ports: # this is not required but nice for local debug
|
22 |
- "4444:4444"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
# crawler:
|
24 |
# build:
|
25 |
# dockerfile: Dockerfile.python
|
@@ -43,33 +75,4 @@ services:
|
|
43 |
# - "./python:/app/src:z" # for debugging
|
44 |
# - "./data:/app/data:z"
|
45 |
|
46 |
-
# browserless:
|
47 |
-
# image: docker.io/zenika/alpine-chrome
|
48 |
-
# entrypoint: ["sh", "-c", "while true; do chromium-browser --headless --use-gl=swiftshader --disable-software-rasterizer --disable-dev-shm-usage --no-sandbox --remote-debugging-address=0.0.0.0 --remote-debugging-port=3000; sleep 2; done"]
|
49 |
-
# ports:
|
50 |
-
# - "3000:3000"
|
51 |
-
|
52 |
-
# puppet:
|
53 |
-
# build:
|
54 |
-
# dockerfile: Dockerfile.deno
|
55 |
-
# context: .
|
56 |
-
# links:
|
57 |
-
# - browserless
|
58 |
-
# environment:
|
59 |
-
# BROWSERLESS_HOST: browserless
|
60 |
-
# BROWSERLESS_PORT: 3000
|
61 |
-
# DEBUG: "puppet"
|
62 |
-
# depends_on:
|
63 |
-
# - "browserless"
|
64 |
-
# #command: "sh -c 'while echo deno; do sleep 3h; done'" # debug
|
65 |
-
# command: "deno run --allow-net --allow-env --allow-read --allow-write src/index.ts"
|
66 |
-
# volumes:
|
67 |
-
# - "./deno:/app/src:z" # for debugging
|
68 |
-
# - "./data:/app/data:z"
|
69 |
-
# #restart: unless-stopped:600
|
70 |
-
# deploy:
|
71 |
-
# restart_policy:
|
72 |
-
# condition: any
|
73 |
-
# delay: 600s
|
74 |
-
# window: 300s
|
75 |
|
|
|
20 |
entrypoint: ["sh", "-c", "while true; do geckodriver --binary=/opt/firefox/firefox --log warn --port 4444 --host 0.0.0.0; sleep 2; done"]
|
21 |
ports: # this is not required but nice for local debug
|
22 |
- "4444:4444"
|
23 |
+
|
24 |
+
browserless:
|
25 |
+
image: docker.io/zenika/alpine-chrome
|
26 |
+
entrypoint: ["sh", "-c", "while true; do chromium-browser --headless --use-gl=swiftshader --disable-software-rasterizer --disable-dev-shm-usage --no-sandbox --remote-debugging-address=0.0.0.0 --remote-debugging-port=3000; sleep 2; done"]
|
27 |
+
ports:
|
28 |
+
- "3000:3000"
|
29 |
+
|
30 |
+
puppet:
|
31 |
+
build:
|
32 |
+
dockerfile: Dockerfile.deno
|
33 |
+
context: .
|
34 |
+
links:
|
35 |
+
- browserless
|
36 |
+
environment:
|
37 |
+
BROWSERLESS_HOST: browserless
|
38 |
+
BROWSERLESS_PORT: 3000
|
39 |
+
DEBUG: "puppet"
|
40 |
+
depends_on:
|
41 |
+
- "browserless"
|
42 |
+
command: "sh -c 'while echo 🦕 deno waiting; do sleep 3h; done'" # debug
|
43 |
+
#command: "deno run --allow-net --allow-env --allow-read --allow-write src/index.ts"
|
44 |
+
volumes:
|
45 |
+
- "./deno:/app/src:z" # for debugging
|
46 |
+
- "./data:/app/data:z"
|
47 |
+
#restart: unless-stopped:600
|
48 |
+
deploy:
|
49 |
+
restart_policy:
|
50 |
+
condition: any
|
51 |
+
delay: 600s
|
52 |
+
window: 300s
|
53 |
+
|
54 |
+
|
55 |
# crawler:
|
56 |
# build:
|
57 |
# dockerfile: Dockerfile.python
|
|
|
75 |
# - "./python:/app/src:z" # for debugging
|
76 |
# - "./data:/app/data:z"
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|