Commit fc5798ad by Conor Bolich

updated network

parent c8a5c1a4
......@@ -2,8 +2,8 @@
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
......
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
of this software and associated documentation files (the "Software"), to deal
......
version: '3.8'
services:
scraper-api:
build: . # Build the image from the Dockerfile in the current directory
container_name: gmaps_scraper_api_service # Optional: specify a container name
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
volumes:
- .:/app # Mount current directory to /app in container
working_dir: /app # Set working directory to mounted volume
networks:
- shark
# Optional: Add environment variables if needed for configuration
# environment:
# - HEADLESS_MODE=true
cpu_shares: 1024 # Add cpu_shares here if not using Swarm mode
# deploy:
# replicas: 4
# resources:
# limits:
# cpus: '1'
# memory: 2G
# Create the external network first with:
# docker network create shark
networks:
shark:
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