# ProxiTok - Privacy-respecting TikTok frontend
# Port: 9770
# Alternative TikTok frontend - no ads, no tracking, server-side requests

services:
  proxitok:
    container_name: proxitok-web
    image: ghcr.io/pablouser1/proxitok:master
    ports:
      - 9770:8080
    environment:
      - LATTE_CACHE=/cache
      - API_CACHE=redis
      - REDIS_HOST=proxitok-redis
      - REDIS_PORT=6379
      - API_CHROMEDRIVER=http://proxitok-chromedriver:4444
    volumes:
      - proxitok-cache:/cache
    depends_on:
      - redis
      - chromedriver
    networks:
      - proxitok
    restart: unless-stopped

  redis:
    container_name: proxitok-redis
    image: redis:7-alpine
    volumes:
      - proxitok-redis:/data
    networks:
      - proxitok
    init: true
    restart: unless-stopped

  chromedriver:
    container_name: proxitok-chromedriver
    image: robcherry/docker-chromedriver:latest
    shm_size: 2g
    environment:
      - CHROMEDRIVER_WHITELISTED_IPS=
    privileged: true
    networks:
      - proxitok
    restart: unless-stopped

volumes:
  proxitok-cache:
  proxitok-redis:

networks:
  proxitok:
    driver: bridge
