服务器
  • 服务器部署

    0 Open
    0 Closed
    networks:
        1panel-network:
            external: true
    
    services:
        pgbouncer:
            container_name: ${CONTAINER_NAME}
            image: edoburu/pgbouncer:latest
            restart: always
            deploy:
                resources:
                    limits:
                        cpus: ${CPUS}
                        memory: ${MEMORY_LIMIT}
            labels:
                createdBy: Apps
            networks:
                - 1panel-network
            environment:
                - DB_HOST=postgresql
                - DB_PORT=5432
                - DB_USER=jason
                - DB_PASSWORD=password_ryxGBH
                - POOL_MODE=transaction
                - MAX_CLIENT_CONN=500
                - DEFAULT_POOL_SIZE=40
                - SERVER_IDLE_TIMEOUT=300
                - ADMIN_USERS=jason
                - AUTH_TYPE=scram-sha-256