Initial commit
This commit is contained in:
parent
387bc056b9
commit
df8c2313a9
275 changed files with 12939 additions and 263 deletions
|
|
@ -1,4 +1,4 @@
|
|||
version: '3'
|
||||
version: '3.8'
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
|
|
@ -6,6 +6,114 @@ services:
|
|||
- "5000:5000"
|
||||
environment:
|
||||
- FLASK_APP=app
|
||||
command: flask run --host=0.0.0.0 --port=5000
|
||||
- FLASK_ENV=production
|
||||
- PYTHONUNBUFFERED=1
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./app:/app/app
|
||||
- ./uploads:/app/uploads
|
||||
- ./results:/app/results
|
||||
- ./instance:/app/instance
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
depends_on:
|
||||
- gmaps-scraper-1
|
||||
- gmaps-scraper-2
|
||||
- gmaps-scraper-3
|
||||
- gmaps-scraper-4
|
||||
restart: always
|
||||
networks:
|
||||
- scraper-net
|
||||
|
||||
gmaps-scraper-1:
|
||||
image: gosom/google-maps-scraper:latest
|
||||
container_name: gmaps-scraper-1
|
||||
environment:
|
||||
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
ports:
|
||||
- "5001:8080"
|
||||
volumes:
|
||||
- ./scraper-data-1:/gmapsdata
|
||||
command:
|
||||
- "-web"
|
||||
- "-data-folder=/gmapsdata"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/api/v1/jobs || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- scraper-net
|
||||
|
||||
|
||||
gmaps-scraper-2:
|
||||
image: gosom/google-maps-scraper:latest
|
||||
container_name: gmaps-scraper-2
|
||||
environment:
|
||||
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
ports:
|
||||
- "5002:8080"
|
||||
volumes:
|
||||
- ./scraper-data-2:/gmapsdata
|
||||
command:
|
||||
- "-web"
|
||||
- "-data-folder=/gmapsdata"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/api/v1/jobs || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- scraper-net
|
||||
|
||||
gmaps-scraper-3:
|
||||
image: gosom/google-maps-scraper:latest
|
||||
container_name: gmaps-scraper-3
|
||||
environment:
|
||||
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
ports:
|
||||
- "5003:8080"
|
||||
volumes:
|
||||
- ./scraper-data-3:/gmapsdata
|
||||
command:
|
||||
- "-web"
|
||||
- "-data-folder=/gmapsdata"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/api/v1/jobs || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- scraper-net
|
||||
|
||||
gmaps-scraper-4:
|
||||
image: gosom/google-maps-scraper:latest
|
||||
container_name: gmaps-scraper-4
|
||||
environment:
|
||||
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
ports:
|
||||
- "5004:8080"
|
||||
volumes:
|
||||
- ./scraper-data-4:/gmapsdata
|
||||
command:
|
||||
- "-web"
|
||||
- "-data-folder=/gmapsdata"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/api/v1/jobs || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- scraper-net
|
||||
|
||||
|
||||
|
||||
networks:
|
||||
scraper-net:
|
||||
driver: bridge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue