Domain availability checker
version: "3.9"
services:
redis:
image: redis:alpine
volumes:
- ./data/redis/:/data
ports:
- 6379:6379
new-newt-crawler:
build:
dockerfile: Dockerfile
command: crawler
env_file:
- ./.env
depends_on:
- redis
new-newt-web:
build:
context: ./
dockerfile: Dockerfile
command: web
env_file:
- ./.env
ports:
- 8080:8080
depends_on:
- redis
docker-compose exec new-newt-crawler new-newt add example.de
To delete the domain again use:
docker-compose exec new-newt-crawler new-newt delete example.de
./example-domains.txt
domain.de
domain1.de
domain2.de
domain3.de
domain4.de
docker cp example-domains.txt new-newt_new-newt-crawler_1:./example-domains.txt
docker-compose exec new-newt-crawler new-newt import file example-domains.txt
clear all domains
docker-compose exec new-newt-crawler clear
build Build the binary file
build-docker build docker image
clean Remove previous build
dep get the dependencies
run-docker run project
test test go code