Commit fc5798ad by Conor Bolich

updated network

parent c8a5c1a4
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
FROM python:3.10-slim FROM python:3.10-slim
# Set environment variables # Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED=1
# Set work directory # Set work directory
WORKDIR /app WORKDIR /app
......
MIT License MIT License
Copyright (c) 2025 cbolich Copyright (c) 2025 conor-is-my-name
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
version: '3.8'
services: services:
scraper-api: scraper-api:
build: . # Build the image from the Dockerfile in the current directory build: . # Build the image from the Dockerfile in the current directory
container_name: gmaps_scraper_api_service # Optional: specify a container name container_name: gmaps_scraper_api_service # Optional: specify a container name
ports: ports:
- "8001-8004:8001" # Map host port 8001 to container port 8001 - "8001:8001" # Map host port 8001 to container port 8001
restart: unless-stopped # Restart policy restart: unless-stopped # Restart policy
volumes: volumes:
- .:/app # Mount current directory to /app in container - .:/app # Mount current directory to /app in container
working_dir: /app # Set working directory to mounted volume working_dir: /app # Set working directory to mounted volume
networks:
- shark
# Optional: Add environment variables if needed for configuration # Optional: Add environment variables if needed for configuration
# environment: # environment:
# - HEADLESS_MODE=true # - HEADLESS_MODE=true
cpu_shares: 1024 # Add cpu_shares here if not using Swarm mode cpu_shares: 1024 # Add cpu_shares here if not using Swarm mode
# deploy:
# replicas: 4 # Create the external network first with:
# resources: # docker network create shark
# limits: networks:
# cpus: '1' shark:
# memory: 2G external: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment