captainVersion: 4
services:
    $$cap_appname-redis:
        image: redis:$$cap_redis_version
        volumes:
            - $$cap_appname-cache-data:/app/data
        caproverExtra:
            notExposeAsWebApp: 'true'
    $$cap_appname:
        image: jhao104/proxy_pool:$$cap_app_version
        depends_on:
            - $$cap_appname-redis
        restart: always
        environment:
            DB_CONN: redis://srv-captain--$$cap_appname-redis:6379/0
        caproverExtra:
            containerHttpPort: '5010'
caproverOneClickApp:
    variables:
        - id: $$cap_redis_version
          label: Redis Docker version
          defaultValue: 6-alpine
          description: Check out their Docker page for the valid versions https://hub.docker.com/r/library/redis/tags
        - id: $$cap_app_version
          label: Proxy Pool version
          defaultValue: '2.2.0'
          description: https://hub.docker.com/r/jhao104/proxy_pool/tags
    instructions:
        start: Python crawler proxy IP pool (proxy pool)

        end: Done! 😄 Your service is available at http://$$cap_appname.$$cap_root_domain

    displayName: Proxy Pool
    isOfficial: true
    description: Python crawler proxy IP pool (proxy pool)
    documentation: https://hub.docker.com/r/jhao104/proxy_pool
