services:
  urlshort:
    image: python:3.11-slim
    working_dir: /app
    command: ["python", "-u", "urlshort.py", "config.json"]
    ports:
      - "127.0.0.1:18082:8080"
    volumes:
      - ./urlshort.py:/app/urlshort.py:ro
      - ./config.json:/app/config.json:ro
      - ./static:/app/static:ro
      - ./data:/app/data
    restart: unless-stopped

