This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def does_it_exist(link): | |
parsed_uri = urlparse(link) | |
domain = '{uri.scheme}'.format(uri=parsed_uri)+'://'+'{uri.netloc}/'.format(uri=parsed_uri) | |
try: | |
r = requests.get(domain) | |
if r.status_code == 200: | |
return True | |
return False | |
except: | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
laravelappfolder: | |
build: ./laravelappfolder | |
container_name: laravelappfolder | |
restart: always | |
expose: | |
- 9000 #exposes this port to the other containers |